VGSecurityManagerResetPassword Method (String, String) |
Note: This API is now obsolete.
Namespace: Novalys.VisualGuard.Security
[ObsoleteAttribute("This method is Obsolete")] public static string ResetPassword( string name, string passwordAnswer )
Exception | Condition |
---|---|
ArgumentNullException | The name is null. orThe passwordAnswer is null and RequiresQuestionAndAnswer is set to true. |
ArgumentException | The name or passwordAnswer is longer than 64 characters orThe name is empty. |
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. |
NotSupportedException | EnablePasswordReset is not set to true. - Or -the repository does not support Visual Guard authentication mode. |
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.