aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney
diff options
context:
space:
mode:
authorAlexis Métaireau <alexis@notmyidea.org>2018-01-05 22:57:31 +0100
committerAlexis Métaireau <alexis@notmyidea.org>2018-01-05 22:59:12 +0100
commitc3b973b15e888263f6ca8538a72e39280a77ac3e (patch)
treed8b0283fbfbc36b43389fa6073d5aa6facbb20a4 /ihatemoney
parentb581865873f62821b21c50a0f445d9c4a517b5ec (diff)
downloadihatemoney-mirror-c3b973b15e888263f6ca8538a72e39280a77ac3e.zip
ihatemoney-mirror-c3b973b15e888263f6ca8538a72e39280a77ac3e.tar.gz
ihatemoney-mirror-c3b973b15e888263f6ca8538a72e39280a77ac3e.tar.bz2
Do not enforce a check on sha256 hash algorithm.
This makes it inconsistent with our own generated passwords. Only check that the password has been hashed. Fixes #310.
Diffstat (limited to 'ihatemoney')
-rw-r--r--ihatemoney/run.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ihatemoney/run.py b/ihatemoney/run.py
index e3a7c1e..b431cb4 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"