Project

General

Profile

Change as admin the password of an user

Added by Fier Dsoi over 1 year 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 over 1 year 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 over 1 year 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 over 1 year ago

PasswordService has an updatePassword function that you can use to set the password of a user.

    (1-4/4)