Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Rashmini committed Sep 12, 2023
1 parent 9aa3aa4 commit 4c8c9f6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,7 @@ public UserRecoveryData getUserRecoveryData(String code, RecoverySteps step) thr
*
* @param recoveryFlowId Recovery flow id of the user.
* @param step Recovery step.
* @return UserRecoveryData Data associated with the provided recoveryFlowId.
* @throws IdentityRecoveryException If an error occurred while validating the recoveryId.
*/
public UserRecoveryData getUserRecoveryDataFromFlowId(String recoveryFlowId, RecoverySteps step)
Expand Down Expand Up @@ -973,6 +974,7 @@ public UserRecoveryData getUserRecoveryDataFromFlowId(String recoveryFlowId, Rec
* Get user recovery flow data using the recovery flow id.
*
* @param recoveryDataDO User Recovery Data object.
* @return UserRecoveryFlowData Data associated with the provided UserRecoveryData.
* @throws IdentityRecoveryException If an error occurred while validating the recoveryId.
*/
public UserRecoveryFlowData loadUserRecoveryFlowData(UserRecoveryData recoveryDataDO)
Expand Down Expand Up @@ -1006,8 +1008,10 @@ public UserRecoveryFlowData loadUserRecoveryFlowData(UserRecoveryData recoveryDa
*
* @param recoveryFlowId Recovery Flow Id.
* @param failedAttempts Failed Attempts.
* @throws IdentityRecoveryException If an error occurred while updating the recovery flow data.
*/
public void updateRecoveryDataFailedAttempts(String recoveryFlowId, int failedAttempts) throws IdentityRecoveryException {
public void updateRecoveryDataFailedAttempts(String recoveryFlowId, int failedAttempts)
throws IdentityRecoveryException {

UserRecoveryDataStore userRecoveryDataStore = JDBCRecoveryDataStore.getInstance();
userRecoveryDataStore.updateFailedAttempts(recoveryFlowId, failedAttempts);
Expand All @@ -1018,6 +1022,7 @@ public void updateRecoveryDataFailedAttempts(String recoveryFlowId, int failedAt
*
* @param recoveryFlowId Recovery Flow Id.
* @param resendCount Current Resend Count.
* @throws IdentityRecoveryException If an error occurred while updating the recovery flow data.
*/
public void updateRecoveryDataResendCount(String recoveryFlowId, int resendCount) throws IdentityRecoveryException {

Expand All @@ -1029,6 +1034,7 @@ public void updateRecoveryDataResendCount(String recoveryFlowId, int resendCount
* Invalidate the recovery Data.
*
* @param recoveryFlowId Recovery Flow Id.
* @throws IdentityRecoveryException If an error occurred while invalidating recovery data.
*/
public void invalidateRecoveryData(String recoveryFlowId) throws IdentityRecoveryException {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,9 @@ public PasswordResetCodeDTO confirm(String otp, String confirmationCode, String

validateTenantDomain(tenantDomain);
UserAccountRecoveryManager userAccountRecoveryManager = UserAccountRecoveryManager.getInstance();
// In the recovery scenarios which are not OTP based, the confirmation code is a combination of the
// recovery flow id and another UUID generated. Hence, we need to get the recovery flow id from the
// confirmation code. In the OTP based recovery scenario, the confirmation code is the recovery flow id.
/* In the recovery scenarios which are not OTP based, the confirmation code is a combination of the
recovery flow id and another UUID generated. Hence, we need to get the recovery flow id from the
confirmation code. In the OTP based recovery scenario, the confirmation code is the recovery flow id. */
String[] ids = confirmationCode.split(Pattern.quote(IdentityRecoveryConstants.CONFIRMATION_CODE_SEPARATOR));
String recoveryFlowId;
String code;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ private void invalidateRecoveryCode(String recoveryCode) throws IdentityRecovery
* Invalidate the recovery flow id.
*
* @param recoveryFlowId Recovery flow id.
* @throws IdentityRecoveryException If an error occurred while invalidating recovery data.
*/
private void invalidateRecoveryFlowId(String recoveryFlowId) throws IdentityRecoveryException {

Expand Down

0 comments on commit 4c8c9f6

Please sign in to comment.