lundi 18 septembre 2017

Auth::attemp() is not working. Laravel 5.5

My registration form is working and it store users to db but when user login then Auth::attempt() return false. Here is my code for login. I store the password in db in sha1 encription.

Route::post('login',function(){
$creds=array(
        'email' => Input::get('email'),
        'password' => sha1(Input::get('password'))
    );
$auth = Auth::attempt($creds);

dd($auth);



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire