fame icon indicating copy to clipboard operation
fame copied to clipboard

Password reset

Open fenderstrato666 opened this issue 3 years ago • 1 comments

Description

After fresh installation, first login. Password forgotten. How to reset.

fenderstrato666 avatar Dec 01 '21 19:12 fenderstrato666

have you tried reinstalling fame?

lightningwaterbright avatar Apr 30 '22 12:04 lightningwaterbright

Hello,

In such situation, you should click the "Reset password" link on the login page. If this link is not working (SMTP server not yet configured?) then I would indeed recommend to reinstall.

If re-installing is not an option for you, you can reset an account programmatically in few commands :

./utils/run.sh utils/shell.py 
[+] Using existing virtualenv.

Python 3.9.2 (default, Feb 28 2021, 17:03:44) 
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from fame.core.user import User
>>> from web.auth.user_password.user_management import change_password
>>> change_password(User.get(name="Admin"), "newpassword")

I will close this issue for now. Feel free to re-open it if needed !

Augustin-FL avatar Aug 16 '22 12:08 Augustin-FL