Skip to content

Commit

Permalink
new account recovery api: addressing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
somindatommy committed Jan 9, 2020
1 parent f5b109c commit b219249
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public ResendConfirmationDTO resendConfirmation(String tenantDomain, String rese
UserRecoveryData userRecoveryData = userAccountRecoveryManager
.getUserRecoveryData(resendCode, RecoverySteps.RESEND_CONFIRMATION_CODE);
User user = userRecoveryData.getUser();
if (!StringUtils.equals(tenantDomain,user.getTenantDomain())) {
if (!StringUtils.equals(tenantDomain, user.getTenantDomain())) {
throw Utils.handleClientException(
IdentityRecoveryConstants.ErrorMessages.ERROR_CODE_USER_TENANT_DOMAIN_MISS_MATCH_WITH_CONTEXT,
tenantDomain);
Expand All @@ -151,7 +151,7 @@ public ResendConfirmationDTO resendConfirmation(String tenantDomain, String rese
resendCode);
}
// Validate the tenant domain and the recovery scenario in the request.
validateRequestAttributes(user,scenario,userRecoveryData.getRecoveryScenario(),tenantDomain,resendCode);
validateRequestAttributes(user, scenario, userRecoveryData.getRecoveryScenario(), tenantDomain, resendCode);
validateCallback(properties, user.getTenantDomain());
UserRecoveryDataStore userRecoveryDataStore = JDBCRecoveryDataStore.getInstance();
userRecoveryDataStore.invalidate(user);
Expand Down Expand Up @@ -195,7 +195,7 @@ private void validateRequestAttributes(User recoveredUser, RecoveryScenarios sce
String tenantDomainInRequest, String resendCode)
throws IdentityRecoveryClientException {

if (!StringUtils.equals(tenantDomainInRequest,recoveredUser.getTenantDomain())) {
if (!StringUtils.equals(tenantDomainInRequest, recoveredUser.getTenantDomain())) {
throw Utils.handleClientException(
IdentityRecoveryConstants.ErrorMessages.ERROR_CODE_USER_TENANT_DOMAIN_MISS_MATCH_WITH_CONTEXT,
tenantDomainInRequest);
Expand Down

0 comments on commit b219249

Please sign in to comment.