Try Now
More in this section

Forums / General Discussions / Sitefinity 3.7 - Code to Set User Password

Sitefinity 3.7 - Code to Set User Password

2 posts, 0 answered
  1. Andy
    Andy avatar
    1 posts
    10 Feb 2010
    08 Jun 2011
    Link to this post
    We just went live with a Sitefinity site. We have a customer service department responsible for setting user passwords to a specific value so that the passwords are consistent with other back end system logins. I know that it's not possible to set a password from within CMS backend, but is it possible to create a user control that does something like the following:

    Call a function to retrieve user membership info based on login or some other criteria
    Generate new random password for the user
    Call a change user function to set the password to a specific value


  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    19 Oct 2016
    10 Jun 2011
    Link to this post
    Hi Andy,

    There is an ASP.NET general way that you can use


    var ch = Membership.Provider.ChangePassword("admin", "admin", "admin@2");

    Please refer to

    • http://msdn.microsoft.com/en-us/library/system.web.security.membershipprovider.changepassword.aspx
    • http://msdn.microsoft.com/en-us/library/system.web.security.membershipuser.changepasswor

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered