I modify the login function in Login controller using credentials function
protected function credentials(\Illuminate\Http\Request $request)
{
return ['email' => $request->email, 'password' => $request->password, 'status' => 1];
}
although the function is work, but i need to return an error message to show that "Account is suspended" in login page if user's status not equal to 1.
How can i modify the error message?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2qA8AaJ
via IFTTT
Aucun commentaire:
Enregistrer un commentaire