mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-13 16:00:13 +00:00
Code cleanup
This commit is contained in:
@@ -122,10 +122,10 @@ class Authenticate
|
||||
}
|
||||
if (null !== $user) {
|
||||
// app('log')->debug(get_class($user));
|
||||
if (1 === (int)$user->blocked) {
|
||||
$message = (string)trans('firefly.block_account_logout');
|
||||
if (1 === (int) $user->blocked) {
|
||||
$message = (string) trans('firefly.block_account_logout');
|
||||
if ('email_changed' === $user->blocked_code) {
|
||||
$message = (string)trans('firefly.email_changed_logout');
|
||||
$message = (string) trans('firefly.email_changed_logout');
|
||||
}
|
||||
app('log')->warning('User is blocked, cannot use authentication method.');
|
||||
app('session')->flash('logoutMessage', $message);
|
||||
|
Reference in New Issue
Block a user