Skip to content

Commit

Permalink
fix: banned message
Browse files Browse the repository at this point in the history
  • Loading branch information
blt950 authored Feb 4, 2024
1 parent f8b9410 commit feb8045
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/Auth/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ protected function verifyLogin(Request $request)

// Check if user is banned
if($user && $user->banned){
return redirect()->route('landing')->withError('<br>Login denied</br><br>User '.$user->id.' has been banned in '.Config::get('app.owner_short').' for the following reason: <i>'.$user->banned->reason.'</i><br><br>For inquires contact '.Config::get('app.owner_contact').'');
return redirect()->route('landing')->withError('<br>Login denied</br><br>User '.$user->id.' has been banned in '.\Config::get('app.owner_short').' for the following reason: <i>'.$user->banned->reason.'</i><br><br>For inquires contact '.\Config::get('app.owner_contact').'');
}

// Check if user exists and accepted privacy policy
Expand Down Expand Up @@ -157,4 +157,4 @@ public function logout()
Auth::logout();
return redirect()->to('/')->withSuccess('You have been successfully logged out.');
}
}
}

0 comments on commit feb8045

Please sign in to comment.