I am trying to authenticate my usernane and password via sentinel authentication method in laravel.But the authentication is not working .Plz let me know where i am getting wrong.Below is my code.Thanks.
$new_inputs['username'] = $inputs['mob'];
$new_inputs['password'] = $inputs['password'];
$credentials = Sentinel::authenticate($new_inputs);
if ($credentials) {
return Lang::get('messages.info.loggedIn');
} else {
return Lang::get('messages.info.invalid_user');
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire