first(); if (null === $user) { Log::debug(sprintf('User with email "%s" not found. Will be created.', $identifier)); $user = User::create( [ 'blocked' => false, 'blocked_code' => null, 'email' => $identifier, 'password' => bcrypt(Str::random(64)), ] ); } Log::debug(sprintf('Going to return user #%d (%s)', $user->id, $user->email)); return $user; } /** * @inheritDoc */ public function retrieveByToken($identifier, $token) { Log::debug(sprintf('Now at %s', __METHOD__)); throw new FireflyException(sprintf('Did not implement %s', __METHOD__)); } /** * @inheritDoc */ public function updateRememberToken(Authenticatable $user, $token) { Log::debug(sprintf('Now at %s', __METHOD__)); throw new FireflyException(sprintf('Did not implement %s', __METHOD__)); } /** * @inheritDoc */ public function validateCredentials(Authenticatable $user, array $credentials) { Log::debug(sprintf('Now at %s', __METHOD__)); throw new FireflyException(sprintf('Did not implement %s', __METHOD__)); } }