Browse Source

Revert thing.

pull/841/head
James Cole 4 months ago
parent
commit
83ba6f7f4b
  1. 3
      app/Services/SimpleFIN/AuthenticationValidator.php

3
app/Services/SimpleFIN/AuthenticationValidator.php

@ -40,11 +40,10 @@ class AuthenticationValidator implements AuthenticationValidatorInterface
public function validate(): AuthenticationStatus
{
app('log')->debug(sprintf('Now at %s', __METHOD__));
return AuthenticationStatus::authenticated();
// needs an APP key which isn't blank or zero or whatever.
$key = (string) config('app.key');
if ('' === $key) {
Log::debug('app.key is empty, cannot authenticate.');
Log::debug(sprintf('app.key is empty ("%s"), cannot authenticate.', $key));
return AuthenticationStatus::error();
}
Log::debug('app.key is OK, can authenticate.');

Loading…
Cancel
Save