diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 44c26417..d256bec4 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -10,6 +10,7 @@ Fixed ===== - Fix the generation of the supervisord template (#306) +- Fix the validation of the hashed password (#310) 2.0 (2017-12-27) diff --git a/ihatemoney/run.py b/ihatemoney/run.py index e3a7c1e5..b431cb48 100644 --- a/ihatemoney/run.py +++ b/ihatemoney/run.py @@ -89,7 +89,7 @@ def validate_configuration(app): if 'MAIL_DEFAULT_SENDER' not in app.config: app.config['MAIL_DEFAULT_SENDER'] = default_settings.DEFAULT_MAIL_SENDER - if "pbkdf2:sha256:" not in app.config['ADMIN_PASSWORD'] and app.config['ADMIN_PASSWORD']: + if "pbkdf2:" not in app.config['ADMIN_PASSWORD'] and app.config['ADMIN_PASSWORD']: # Since 2.0 warnings.warn( "The way Ihatemoney stores your ADMIN_PASSWORD has changed. You are using an unhashed"