Compare commits
1 Commits
main
...
desarrollo
| Author | SHA1 | Date | |
|---|---|---|---|
| 0c5146b288 |
@ -34,7 +34,11 @@ public function login(LoginRequest $request)
|
|||||||
->withErrors(trans('auth.failed'));
|
->withErrors(trans('auth.failed'));
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
|
|
||||||
$user = Auth::getProvider()->retrieveByCredentials($credentials);
|
$user = Auth::getProvider()->retrieveByCredentials($credentials);
|
||||||
|
if($user->active != true){
|
||||||
|
return redirect()->to('login');
|
||||||
|
}
|
||||||
|
|
||||||
Auth::login($user);
|
Auth::login($user);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user