T
T
t0xicc2020-10-21 14:47:07
Laravel
t0xicc, 2020-10-21 14:47:07

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 question

Ask a Question

731 491 924 answers to any question