VGMembershipUserResetPassword Method (String) |
Namespace: Novalys.VisualGuard.Security.Membership
Exception | Condition |
---|---|
NotSupportedException | EnablePasswordReset is not set to true.
- or - The user is not a Visual Guard account. |
ArgumentNullException | RequiresQuestionAndAnswer is set to true and the passwordAnswer is null. |
VGMembershipPasswordException | passwordAnswer is invalid.
- or - The user account is currently locked out or does not exist.- or - The generated password does not pass the password policy validation. |
The password answer check is case sensitive. We strongly recommend to store the password answer as a lowered string and provide a lowered value of the password answer when you want to reset the password by using the password question and answer.