Пример #1
0
 public function sendResetPassword($user, Authentication $auth)
 {
     $user = $this->user->find($user);
     $code = $auth->createReminderCode($user);
     event(new UserHasBegunResetProcess($user, $code));
     flash(trans('user::auth.reset password email was sent'));
     return redirect()->route('admin.user.user.edit', $user->id);
 }
 /**
  * Handle the command
  *
  * @param $command
  * @throws UserNotFoundException
  * @return mixed
  */
 public function handle($command)
 {
     $user = $this->findUser((array) $command);
     $code = $this->auth->createReminderCode($user);
     event(new UserHasBegunResetProcess($user, $code));
 }
Пример #3
0
 /**
  * Start the reset password process for given credentials (email)
  * @param array $credentials
  * @throws UserNotFoundException
  */
 public function startReset(array $credentials)
 {
     $user = $this->findUser($credentials);
     $code = $this->auth->createReminderCode($user);
     event(new UserHasBegunResetProcess($user, $code));
 }