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.
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.
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.
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
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.
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
Hi Paul,
Thanks for your reply.Now i m getting idea why my passwords are not working.
---vijay.
is working on a reply...