Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Rashmini committed Sep 15, 2023
1 parent 8cc2732 commit 32a535a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -672,8 +672,9 @@ public User updateUserPassword(String code, String confirmationCode, String pass
int failedAttempts = userRecoveryData.getFailedAttempts();

if (!StringUtils.equals(code, userRecoveryData.getSecret())) {
if ((failedAttempts + 1) >= Integer.parseInt(Utils.getRecoveryConfigs(IdentityRecoveryConstants.ConnectorConfig.
RECOVERY_OTP_PASSWORD_MAX_FAILED_ATTEMPTS, userRecoveryData.getUser().getTenantDomain()))) {
if ((failedAttempts + 1) >= Integer.parseInt(Utils.getRecoveryConfigs(IdentityRecoveryConstants.
ConnectorConfig.RECOVERY_OTP_PASSWORD_MAX_FAILED_ATTEMPTS, userRecoveryData.getUser().
getTenantDomain()))) {
userRecoveryDataStore.invalidateWithRecoveryFlowId(confirmationCode);
throw Utils.handleClientException(
IdentityRecoveryConstants.ErrorMessages.ERROR_CODE_INVALID_RECOVERY_FLOW_ID.getCode(),
Expand Down

0 comments on commit 32a535a

Please sign in to comment.