Revision 3 can't exist yet, default to 0 for other lengths.

This commit is contained in:
ReAnzu 2018-03-02 22:50:20 -06:00
parent 76c5c202b1
commit bedc03b18f

View file

@ -65,7 +65,7 @@ def upgrade():
elif password_hash_length == 64:
user.password_revision = 2
else:
user.password_revision = 3
user.password_revision = 0
session.flush()
session.commit()