Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,9 @@ public class ForbiddenException extends AbstractBaseException {
public ForbiddenException(String message) {
super(message);
}

@Override
protected boolean suppressStackTrace() {
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ public ResponseEntity<FinishEnrollment> resendPhoneCodeForSp(HttpServletRequest
String sessionKey = (String) request.getSession().getAttribute(SESSION_KEY);
Authentication authentication = tiqrService.authenticationStatus(sessionKey);
if (!authentication.getStatus().equals(AuthenticationStatus.SUCCESS)) {
throw new ForbiddenException("Forbidden phone code, wrong status: " + authentication.getStatus());
throw new ForbiddenException("Invalid phone code status, wrong status: " + authentication.getStatus());
}
User user = userFromAuthentication(secAuthentication);
String phoneNumber = phoneCode.getPhoneNumber();
Expand Down Expand Up @@ -398,7 +398,7 @@ private ResponseEntity<VerifyPhoneCode> doVerifyPhoneCode(PhoneVerification phon
}
userRepository.save(user);
} else {
throw new ForbiddenException("Forbidden phone code, wrong code: " + code);
throw new ForbiddenException("Wrong phone code, wrong code: " + code);
}
return ResponseEntity.ok(new VerifyPhoneCode(this.magicLinkUrl));
}
Expand Down
Loading