Fixed typo on exception

Change-Id: Icbb6396b398b5b61a36dbafd01ffab10dfb80f2a
Signed-off-by: smarcet <smarcet@gmail.com>
This commit is contained in:
smarcet 2020-03-23 19:21:21 -03:00
parent bc3b420d74
commit fdfe50ede0

View File

@ -63,14 +63,15 @@ final class ResetPasswordController extends Controller
{
try {
$request = $this->user_password_reset_request_repository->getByToken($token);
if(is_null($request))
throw new EntityNotFoundException(sprint("request not found for token %s", $token));
throw new EntityNotFoundException(sprintf("Request not found for token %s.", $token));
if(!$request->isValid())
throw new ValidationException("request is void");
throw new ValidationException("Request is void.");
if($request->isRedeem()){
throw new ValidationException("request is already redeem");
throw new ValidationException("Request is already redeem.");
}
return view('auth.passwords.reset')->with(
[