/** * Show the verification error view. * * @return Response */ public function getVerificationError() { if (UserVerification::isVerified(auth()->user())) { return redirect($this->redirectIfVerified()); } return view($this->verificationErrorView()); }
/** * Handle the user verification. * * @param string $token * @return Response */ public function getVerification(Request $request, $token) { $this->validateRequest($request); try { UserVerification::process($request->input('email'), $token, $this->userTable()); } catch (UserNotFoundException $e) { return redirect($this->redirectIfVerificationFails()); } catch (UserIsVerifiedException $e) { return redirect($this->redirectIfVerified()); } catch (TokenMismatchException $e) { return redirect($this->redirectIfVerificationFails()); } return redirect($this->redirectAfterVerification()); }