- $this->validate($request, [
- 'email' => ['required', 'email', 'exists:users,email'],
- ]);
- $user = $this->userRepo->getByEmail($request->get('email'));
+ $user = $this->loginService->getLastLoginAttemptUser();
+ if ($user === null) {
+ $this->showErrorNotification(trans('errors.login_user_not_found'));
+ return redirect('/login');
+ }