mardi 11 octobre 2016

Auth::attempt() laravel 5.2

please Help me, im new in laravel 5.2 i manually code my login page in laravel.

when i enter my email address correctly in my login page even my password is null or incorrect it return true.

here is my code

userController.php public function postSignIn(Request $request){

    $user = array(
        'email' => $request->input('email'),
        'password' => $request->input('password')
    );

        if (Auth::attempt($user)) {
            return redirect() -> route('dashboard');

        }
      return redirect()->back();

}

}

please help me. thank you so much.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire