Resets a user's password to a new, automatically generated password.
The new password for the specified user.
| Exception Type | 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. orEnablePasswordReset is not set to true. orthe repository does not support Visual Guard authentication mode. |
VGSecurityManager Class | Novalys.VisualGuard.Security Namespace | VGSecurityManager.ResetPassword Overload List