Answer the question
In order to leave comments, you need to log in
Problem with Laravel authorization, who knows what the problem is?
I checked, the data from $request comes from the form everything is correct, but it always shows Wrong email or password even when the data is correct, who can tell what the problem is?)
$user_data = array(
'email' => $request->input('email'),
'password' => $request->input('password')
);
if(Auth::attempt($user_data))
{
return redirect()->route('home')->with('info', 'You are loggined!');
}
else
{
return redirect()->back()->with('info', 'Wrong email or password');
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question