VGSecurityManagerResetPassword Method (String, Boolean) |
Note: This API is now obsolete.
Namespace: Novalys.VisualGuard.Security
[ObsoleteAttribute("You need to use ResetPassword or ForcePassword methods in {VGSecurityManager.Runtime.Membership}")] public static string ResetPassword( string name, bool ignoreRequiresQuestionAndAnswer )
Exception | Condition |
---|---|
ArgumentNullException | The name is null. |
ArgumentException | The name is longer than 64 characters orThe name is empty. |
VGMembershipPasswordException |
The user account is currently locked out or does not exist.
- or - The generated password does not pass the password policy validation. |
NotSupportedException | RequiresQuestionAndAnswer is set to true and ignoreRequiresQuestionAndAnswer is set to false. orEnablePasswordReset is not set to true. orthe repository does not support Visual Guard authentication mode. |
SecurityException | ignoreRequiresQuestionAndAnswer is true and the current user does not have enough privileges to ignore password answer. The Membership access level of the application must be sufficient to allows this action or the 'Membership Manager' role must be granted to the user by using the Visual Guard console. |