Skip to content

Commit cd2f3bb

Browse files
committed
FIX: specify the full hash algorithm name (#14)
1 parent 8a91e02 commit cd2f3bb

File tree

2 files changed

+408
-261
lines changed

2 files changed

+408
-261
lines changed

Access/userpass.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def register(self, username, password):
7979
return f"Password policy not met. { self.p_pol }", 400
8080
finder = self._userpass.find_one({"username": username})
8181
if not finder:
82-
password = generate_password_hash(password, method="sha256")
82+
password = generate_password_hash(password, method="pbkdf2:sha256")
8383
data = {
8484
"username": username,
8585
"password": password,

0 commit comments

Comments
 (0)