How to change the password ?

Estimated reading: 1 minute

Change password of the Visual-Guard user ?

User can change his/her password

//changes the password of the user by old password
runtime.Membership.ChangePassword("jsmith", "oldpwd", "newpwd");

How to force the password ?

To execute force password, your VGSecurityRuntime.Principal needs to have administrator rights

//Get the user
var user = runtime.Membership.GetUser("jsmith");

//reset the password of the user
runtime.Membership.ForcePassword(user, "newpwd

Leave a Comment

Share this Doc