Change as admin the password of an user
Added by Fier Dsoi almost 2 years ago
How can I change the password of an user that has lost its password? In my case, the user can not set an email recovery address because they are into an internal network wo internet access to the out world. When an user forgets the passwd, I need to be able to restore it with the admin user.
How can I do it?
Thanks
Replies (4)
RE: Change as admin the password of an user - Added by lm at almost 2 years ago
https://www.webtoolkit.eu/wt/doc/tutorial/auth.html gives an example implementing "lost password" functionality. You requested "admin user sets new password", so this is not exactly what you described. This is more secure. Is it good enough for you?
RE: Change as admin the password of an user - Added by Fier Dsoi almost 2 years ago
as indicates in the documentation "Lost password functionality that uses the verified email address to prompt a user to enter a new password"
In my case there is no email address, so it does not work. I need to be able to modify it as root(admin)
RE: Change as admin the password of an user - Added by Roel Standaert almost 2 years ago
PasswordService
has an updatePassword function that you can use to set the password of a user.
RE: Change as admin the password of an user - Added by Fier Dsoi almost 2 years ago
Solved!!! Thanks