lingthio / Flask-User

Customizable User Authorization & User Management: Register, Confirm, Login, Change username/password, Forgot password and more.
http://flask-user.readthedocs.io/
MIT License
1.06k stars 294 forks source link

Change deprecated `passlib.context.CryptoContext.encrypt` to `hash` in `password_manager.py` #266

Closed sotlampr closed 4 years ago

sotlampr commented 5 years ago

Fix for warning message:

flask_user/password_manager.py:50: DeprecationWarning: the method passlib.context.CryptContext.encrypt() is deprecated as of Passlib 1.7, and will be removed in Passlib 2.0, use CryptContext.hash() instead.

As encrypt is deprecated

codecov-io commented 5 years ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@14d30bb). Click here to learn what that means. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #266   +/-   ##
=========================================
  Coverage          ?   88.55%           
=========================================
  Files             ?       25           
  Lines             ?     1450           
  Branches          ?        0           
=========================================
  Hits              ?     1284           
  Misses            ?      166           
  Partials          ?        0
Impacted Files Coverage Δ
flask_user/password_manager.py 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 14d30bb...5c64f51. Read the comment docs.