How can administrator to set the User' Password after user forget his PW ? RRS feed

  • Question

  • I am studing  the  LS .

    My Question is that if User has forgoted his Password ,  administrator need set  his password  to initial  password ,  How to do ?

    SecuritydataService  only has  a  method ,it is  "ChangePassword". but this method  need  oldPassword .

    but administrator don't know ,  user  also  forget it.     How  it to do .

    Hope  anyone  goive   a  help .

    Tuesday, June 7, 2011 3:36 AM


All replies

  • The only way I know of requires access to the actual sql tables through SSMS.

    This article is for DNN, but applies equally to any application using the ASP.NET 2.0 Membership provider, which LS does.

    How to Reset Host Account Password

    Make sure to change these two strings to your actaul account names:

    SET @knownUserName = 'Tonic'
    SET @lostUserName = 'host'

    I've also done this manually, without the use of a script, basically following the same steps as the script uses.


    Plus ça change, plus c'est la même chose!
    Tuesday, June 7, 2011 5:18 AM
  • the simplest way to rest password:

    1.you can  create anew  user

    2. go to sql and go to aspnet_Membership Table 

    3. copy Password and PasswordSalt for new User You Know his Password

    4. Past the Password and PasswordSalt on the User you lost his Password

    5. Finally SignIn using a new  Password .


    Jamil Bin MilheM

    IN4MA Development Team

    • Proposed as answer by Jamil MilheM Tuesday, June 7, 2011 10:47 AM
    Tuesday, June 7, 2011 10:46 AM
  • Joe, that's exactly what the script does.
    Plus ça change, plus c'est la même chose!
    Tuesday, June 7, 2011 12:25 PM
  • An administrator can use the Users administration screen in the application to set that particular user's password.  There's no need to do this by writing code or accessing the database directly.

    Tuesday, June 7, 2011 7:04 PM
  • Thanks for pointing that out Matt!

    I'll add that to my list of "I really should have known that" list, lol.


    Plus ça change, plus c'est la même chose!
    Wednesday, June 8, 2011 1:21 AM
  • thanx Matt 
    • Marked as answer by Hopesun Tuesday, June 14, 2011 7:29 AM
    Wednesday, June 8, 2011 2:29 PM
  • You meant to mark Matt's post as answer, not someone saying "thanks", right?
    Yann - Plus ça change, plus c'est la même chose!
    Tuesday, June 14, 2011 11:22 AM