mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 20:51:49 +02:00
Update hashed password warning message
This commit is contained in:
parent
2827bcc54b
commit
7fefa2c02f
1 changed files with 6 additions and 4 deletions
|
@ -53,11 +53,13 @@ def configure():
|
||||||
app.config['MAIL_DEFAULT_SENDER'] = DEFAULT_MAIL_SENDER
|
app.config['MAIL_DEFAULT_SENDER'] = DEFAULT_MAIL_SENDER
|
||||||
|
|
||||||
if "pbkdf2:sha256:" not in app.config['ADMIN_PASSWORD'] and app.config['ADMIN_PASSWORD']:
|
if "pbkdf2:sha256:" not in app.config['ADMIN_PASSWORD'] and app.config['ADMIN_PASSWORD']:
|
||||||
# Since v1.1
|
# Since 2.0
|
||||||
warnings.warn(
|
warnings.warn(
|
||||||
"You are using an unhashed ADMIN_PASSWORD, which is not supported anymore"
|
"The way Ihatemoney stores your ADMIN_PASSWORD has changed. You are using an unhashed"
|
||||||
+" for safety reasons. Please follow the instructions in the installation"
|
+" ADMIN_PASSWORD, which is not supported anymore and won't let you access your admin"
|
||||||
+" documentation to update to a safer password mechanism.",
|
+" endpoints. Please use the command './budget/manage.py generate_password_hash'"
|
||||||
|
+" to generate a proper password HASH and copy the output to the value of"
|
||||||
|
+" ADMIN_PASSWORD in your settings file.",
|
||||||
UserWarning
|
UserWarning
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue