Answer by Mateusz for Login only if user is active using Laravel
Paste the following method to your LoginController.protected function validateLogin(Request $request){ $this->validate($request, [ $this->username() => 'exists:users,' . $this->username() ....
View ArticleAnswer by pls13 for Login only if user is active using Laravel
in AuthController override method getCredentials like this:protected function getCredentials(Request $request) { $request['active'] = TRUE; return $request->only($this->loginUsername(),...
View ArticleAnswer by Can Celik for Login only if user is active using Laravel
You don't have to override the whole function. You can just change the Validator in AuthController to achieve that adding "exists:table,column" validation.Let's assume that you have a users table with...
View ArticleAnswer by BrokenBinary for Login only if user is active using Laravel
Laravel 5.4 / 5.5Override the default login() function by placing this function in your LoginController:public function login(\Illuminate\Http\Request $request) { $this->validateLogin($request); //...
View ArticleLogin only if user is active using Laravel
I'm currently working on my Laravel app and to prevent spam I decided that only active users are able to login.I'm currently using Laravel's login system just like in Laravel's official website...
View Article