Add some debug info.

This commit is contained in:
James Cole 2020-09-21 16:08:41 +02:00
parent d05fb4472c
commit e5ac6a3a1d
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D
2 changed files with 2 additions and 2 deletions

View File

@ -82,6 +82,7 @@ class ProfileController extends Controller
$loginProvider = config('firefly.login_provider');
$authGuard = config('firefly.authentication_guard');
$this->externalIdentity = 'eloquent' !== $loginProvider || 'web' !== $authGuard;
Log::debug(sprintf('ProfileController::__construct(). Login provider is "%s", authentication guard is "%s"',$loginProvider, $authGuard));
$this->middleware(IsDemoUser::class)->except(['index']);
}
@ -345,7 +346,6 @@ class ProfileController extends Controller
$userId = $user->id;
$enabled2FA = null !== $user->mfa_secret;
$mfaBackupCount = count(app('preferences')->get('mfa_recovery', [])->data);
$this->createOAuthKeys();
if (0 === $count) {

View File

@ -90,7 +90,7 @@ return [
'providers' => [
'users' => [
'driver' => envNonEmpty('LOGIN_PROVIDER', 'eloquent'), //'adldap',
'driver' => envNonEmpty('LOGIN_PROVIDER', 'eloquent'),
'model' => FireflyIII\User::class,
],
'remote_user_provider' => [