Home > DotNetNuke > How to programmatically change the password of currently logged in user in Dot Net Nuke?

How to programmatically change the password of currently logged in user in Dot Net Nuke?

If you want to change password of currently logged in user. Then following code can be helpful for you.

Boolean changepass = UserController.ChangePassword(this.UserInfo,
YourOldPassword.Text, YourNewPassowrd.Text);

if (changepass)
{
DotNetNuke.UI.Skins.Skin.AddModuleMessage
(this, “Your Password has been changed successfully”,
DotNetNuke.UI.Skins.Controls.ModuleMessage.ModuleMessageType.GreenSuccess);

}

Thanks

Advertisements
Categories: DotNetNuke Tags:
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: