diff --git a/app.py b/app.py index a8c30e7..7f84a04 100644 --- a/app.py +++ b/app.py @@ -165,7 +165,7 @@ def register(): if user is not None: return "User already exists", 409 - + salt = bcrypt.gensalt() hash = bcrypt.hashpw(password.encode("utf-8"), salt) diff --git a/requirements.txt b/requirements.txt index 20ba510..c9a3b81 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,5 +2,5 @@ Flask==2.0.3 PyJWT==2.6.0 pymongo==4.1.1 python-dotenv==0.21.0 -python_bcrypt==0.3.1 +bcrypt==4.0.1 dnspython==2.1.0