Click or drag to resize

VGMembershipUserResetPassword Method

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

Namespace:  Novalys.VisualGuard.Security.Membership
Assembly:  Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2019.1.831.19 (2019.1.0831.19)
Syntax
public string ResetPassword()

Return Value

Type: String
The new password for the membership user.
Exceptions
ExceptionCondition
NotSupportedException

RequiresQuestionAndAnswer is set to true.

or

EnablePasswordReset is not set to true.

NotSupportedExceptionthe user is not a Visual Guard user and cannot be modified.
VGMembershipPasswordException The user account is currently locked out or does not exist.

- or -

The generated password does not pass the password policy validation.
Remarks
If the property "Enable Password Reset" of the repository is not set to true a NotSupportedException will be thrown.
See Also