Skip to content

Commit 9a0fdab

Browse files
committed
Use helpers
1 parent 60a15ed commit 9a0fdab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Http/Middleware/Authenticate.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ public function handle($request, Closure $next)
4242

4343
if ($this->auth->user()->is_banned) {
4444
// Don't allow people who are banned to log in.
45-
Session::put('error', 'Your account has been banned. If you\'d like to appeal, please contact us through the support widget below.');
45+
session()->put('error', 'Your account has been banned. If you\'d like to appeal, please contact us through the support widget below.');
4646

47-
Auth::logout();
47+
$this->auth->logout();
4848

4949
return redirect()->home();
5050
}

0 commit comments

Comments
 (0)