Allow micropub usage when testing locally

This commit is contained in:
Jonny Barnes 2016-10-03 16:26:07 +01:00
parent 55c8a70918
commit 46f1bfd99f
2 changed files with 15 additions and 0 deletions

View file

@ -38,6 +38,9 @@ class TokenService
*/
public function validateToken($token)
{
if (env('APP_DEBUG') == true) {
return true;
}
$signer = new Sha256();
try {
$token = (new Parser())->parse((string) $token);