/** * Send a password reset link. * * @return Response */ public function postEmail() { $this->confirmationForm->validate(Input::all()); $this->mailer->sendPasswordResetLink(Input::only('email')); flash(true); return json(true); }
/** * Resend the confirmation link. * * @return Response */ public function store() { $this->confirmationForm->validate(Input::all()); $user = $this->userRepo->getByEmail(Input::get('email')); if ($user->confirmed) { return json(['errors' => trans('errors.confirmed')]); } $user->regenerateConfirmationToken(); $this->mailer->sendConfirmationLink($user); flash(true); return json(true); }