Fixed typo on exception
Change-Id: Icbb6396b398b5b61a36dbafd01ffab10dfb80f2a Signed-off-by: smarcet <smarcet@gmail.com>
This commit is contained in:
parent
bc3b420d74
commit
fdfe50ede0
@ -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(
|
||||
[
|
||||
|
Loading…
x
Reference in New Issue
Block a user