Resets a user's password to a new, automatically generated password.
The new password for the specified user.
Exception Type | Condition |
---|---|
ArgumentNullException |
username is null. or If RequiresQuestionAndAnswer is set to true and the passwordAnswer is empty. |
ArgumentException | username or passwordAnswer is longer than 64 characters. |
NotSupportedException | If EnablePasswordReset is not set to true. |
MembershipPasswordException | passwordAnswer is invalid or user account is locked out. |
VGMemberShipProvider Class | Novalys.VisualGuard.Security.WebForm Namespace