Commit 3dada7bc authored by Waterfox's avatar Waterfox
Browse files

Update password verification

parent 4a747a1d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -28,6 +28,10 @@
    ]);

    $user = User::where('US_EMAIL', $request->mail)->first();
    if($user == null)
    {
        return view('login', ['wrongPassword' => true]);
    }
    if($user->checkPassword($request->password))
    {
        return redirect('/'); // TODO: Redirect to the user's hub page