Added tests for confirmed registration

This commit is contained in:
Dan Brown
2015-09-21 20:54:11 +01:00
parent e8dd7fda1f
commit 1b736ac045
7 changed files with 96 additions and 12 deletions

View File

@ -170,6 +170,18 @@ class AuthController extends Controller
return view('auth/register-confirm');
}
/**
* View the confirmation email as a standard web page.
* @param $token
* @return \Illuminate\View\View
* @throws UserRegistrationException
*/
public function viewConfirmEmail($token)
{
$confirmation = $this->emailConfirmationService->getEmailConfirmationFromToken($token);
return view('emails/email-confirmation', ['token' => $confirmation->token]);
}
/**
* Confirms an email via a token and logs the user into the system.
* @param $token