Visual Guard Class Library Documentation

VGMembershipUser.ResetPassword Method (String)

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

public string ResetPassword(
   String passwordAnswer
);

Parameters

passwordAnswer
The password answer for the membership user.

Return Value

The new password for the membership user.

Exceptions

Exception Type Condition
NotSupportedException EnablePasswordReset is not set to true.
ArgumentNullException RequiresQuestionAndAnswer is set to true and the passwordAnswer is null.
VGMembershipPasswordException passwordAnswer is invalid or user account is locked out.

See Also

VGMembershipUser Class | Novalys.VisualGuard.Security.Membership Namespace | VGMembershipUser.ResetPassword Overload List