Visual Guard Class Library Documentation

VGMemberShipProvider.ResetPassword Method 

Resets a user's password to a new, automatically generated password.

public override string ResetPassword(
   String username,
   String passwordAnswer
);

Parameters

username
the user to reset the password for.
passwordAnswer
The password answer for the specified user.

Return Value

The new password for the specified user.

Exceptions

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.

See Also

VGMemberShipProvider Class | Novalys.VisualGuard.Security.WebForm Namespace