feat(auth): update login and register flow

This commit is contained in:
2026-08-17 08:10:48 +03:30
parent 95cc970b07
commit 528423d56b
5 changed files with 73 additions and 241 deletions
@@ -29,11 +29,13 @@ class LoginController extends Controller
'general' => 'اطلاعات یافت نشد'
]);
}
if (!\Hash::check($input['password'] , $user->password)){
return back()->withErrors([
'general' => 'اطلاعات یافت نشد'
]);
}
Auth::login($user);
return redirect()->route('index');
}