Followed up on some inspections.

This commit is contained in:
James Cole
2016-01-01 21:49:27 +01:00
parent 5eb0e18cae
commit e892c9a824
32 changed files with 374 additions and 571 deletions

View File

@@ -54,8 +54,9 @@ class Authenticate
return redirect()->guest('auth/login');
}
}
if ($this->auth->user() instanceof User && intval($this->auth->user()->blocked) == 1) {
/** @var User $user */
$user = $this->auth->user();
if ($user instanceof User && intval($user->blocked) == 1) {
Auth::logout();
return redirect()->route('index');