Click here to reset the password. Please complete registration after resetting your password."); } else if (response.EasyEnrollCreateProfile.ErrorMessage == "userNameAlreadyLinkedToAccount") { $('#spanReceivedErrorMessage').html("The username is already linked to the account."); } else if (response.EasyEnrollCreateProfile.ErrorMessage == "userNameDisabled") { $('#spanReceivedErrorMessage').html("Username is disabled."); } else if (response.EasyEnrollCreateProfile.StatusMessage == "EmailVerificationStatusError" || response.EasyEnrollCreateProfile.ErrorCode==800) { $('#spanReceivedErrorMessage').html("Your session time out. Please, restart the process."); } else if (response.EasyEnrollCreateProfile.StatusMessage == "UserAgreedRequired" || response.EasyEnrollCreateProfile.ErrorCode==411) { $('#spanReceivedErrorMessage').html("Please, agree with the Terms of Use"); } else if (response.EasyEnrollCreateProfile.ErrorMessage == "noPendingProfileFound") { $('#spanReceivedErrorMessage').html("Oops. That link won’t work. Our records show you have already validated your email address. There’s nothing else for you to do."); } else if (response.EasyEnrollCreateProfile.IsNewAccountRegistration) redirectPage("/ConfirmEnrollment"); else { redirectPage("/ConfirmEnrollment"); } $('#receivedErrorMessage').show(); } } else { $("#spanReceivedErrorMessage").html(response.ValidationErrors); $('#receivedErrorMessage').show(); } }); }