feat(auth): update login and register flow
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user