London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Password change

Vote:
 

Hi guys!

Current version of EPiServer: CMS 5.1 

 

I wanna chage user password, it's easy:

MemberShip.User = Membership.GetUser();

user.ChangePassword(current, newPassword);

  

But how can I change password without supplying current password?

I know that I can retrivew current password using:

user.GetPassword()

but I do not want to change membership configuration (this affects security).

 

How does EPiServer change password in Admin area (there are just two fields new password and confirm password)?!

Ps.

I not want to reset password. 

#19585
Apr 18, 2008 16:34
Vote:
 

This is how we do it:

string temporaryPassword = membershipUser.ResetPassword(); membershipUser.ChangePassword(temporaryPassword, Password.Text);
#19586
Apr 18, 2008 17:06
Vote:
 

Does this function work for episerver cms 4.62?

#22978
Edited, Aug 22, 2008 11:08
Vote:
 

In 4.* version this works.

int SidID = X;
UserSid userSid = UserSid.Load(SidID);
string strPwd = "abcdefg123"
userSid.SetPassword(strPwd);
userSid.Save(); 

#23029
Aug 25, 2008 9:58
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.