Skip to content

Commit 9afe015

Browse files
authored
Merge pull request #783 from Club-Alpin-Annecy/argon2
[INTERNAL] Phase to argon2 password hashing
2 parents c9145f3 + eedbc3b commit 9afe015

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

collectives/models/user/model.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class UserModelMixin:
9494
:type: :py:class:`datetime.date`"""
9595

9696
password = db.Column(
97-
PasswordType(schemes=["pbkdf2_sha512"]),
97+
PasswordType(schemes=["argon2", "pbkdf2_sha512"], deprecated=["pbkdf2_sha512"]),
9898
nullable=True,
9999
info={"label": "Mot de passe"},
100100
)

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ phonenumbers
2929
zeep
3030
Pillow
3131
PyYAML
32+
argon2-cffi
3233
# Home made fixed version of staled pip
3334
git+https://github.com/Club-Alpin-Annecy/Flask-Images@master#egg=Flask-Images
3435
git+https://github.com/Club-Alpin-Annecy/flask-marshmallow.git@dev#egg=flask-marshmallow

0 commit comments

Comments
 (0)