Skip to content
Snippets Groups Projects
Commit 3e66e17b authored by Verin Antoine's avatar Verin Antoine
Browse files

Merge branch 'auth' into 'main'

refix auth

See merge request !35
parents b5e3eb4c fa88f44a
Branches main
1 merge request!35refix auth
......@@ -51,17 +51,15 @@ class LoginController extends Controller
$n4m3 = $request->input($_NameeuN . 'e');
$p4sS = $request->input($p4ssWORDE);
/*try {
try {
$users = User::where('name', $n4m3)->firstOrFail();
if (!Hash::check($p4sS, $users->password))
if (Hash::check($p4sS, $users->password))
return redirect('/home');
}catch(ModelNotFoundException $e) {
return redirect('/login')->with('message', 'Aïe');
}*/
return redirect('/login')->with('message', 'Aïee');
}
$vsav = "message";
return redirect('/login')->with($vsav, 'Aïe');
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment