Skip to content

Commit

Permalink
Merge pull request lingthio#266 from sotlampr/master
Browse files Browse the repository at this point in the history
Change deprecated `passlib.context.CryptoContext.encrypt` to `hash` in `password_manager.py`
  • Loading branch information
and-semakin authored Nov 24, 2019
2 parents f97732b + 5c64f51 commit 5a6583a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_user/password_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def hash_password(self, password):
"""

# Use passlib's CryptContext to hash a password
password_hash = self.password_crypt_context.encrypt(password)
password_hash = self.password_crypt_context.hash(password)

return password_hash

Expand Down

0 comments on commit 5a6583a

Please sign in to comment.