Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Paul Foley 77 posts 62 karma points
    Jan 20, 2010 @ 23:11
    Paul Foley
    3

    New Package - Let logged in admin users change their own password

    Hey guys,

    We've just uploaded a new package which lets the logged in user change the password for their account without having to give them access to the user section.

    Have a look and let us know if you find it useful, or if you run into any problems.

    http://our.umbraco.org/projects/admin-user-change-password

    Cheers

    Paul

     

  • vijay 129 posts 152 karma points
    Jan 21, 2010 @ 10:42
    vijay
    0

    Hi Paul,

    Can u tel what is the problem with my code

    user created successfully but i m unable to login

    UserType ut = UserType.GetUserType(utID);
                User.MakeNew(userName, LoginName, Password, ut);

                User u = new User(LoginName);
                u.Password = Password;
                u.ValidatePassword(Password);

                u.addApplication("Content");
                //---BAL: Create a function in Business layer which will retrive node id access for particular user type -------//
                //u.StartNodeId = Node.GetCurrent()

                u.Save();

    If possible please send me source file of ur package.It will helpful for me.

    --vijay.

  • Paul Foley 77 posts 62 karma points
    Jan 21, 2010 @ 21:15
    Paul Foley
    1

    If your passwords are being stored as Hashed passwords you need to make sure the hashed one is getting saved. It should be fairly easy to tell, create a new user with your code and go check the password field in the database. if its not encypted and the other ones are, then thats your problem.

    hope that helps

  • vijay 129 posts 152 karma points
    Jan 22, 2010 @ 05:25
    vijay
    0

    Hi Paul,

    Thanks for your reply.Now i m getting idea why my passwords are not working.

    ---vijay.

Please Sign in or register to post replies

Write your reply to:

Draft