From b02a186a411d7a70fda49f13bebc1c8dfb8ef0e2 Mon Sep 17 00:00:00 2001 From: justinmstevenson <92132173+justinmstevenson@users.noreply.github.com> Date: Thu, 23 Nov 2023 23:56:45 -0800 Subject: [PATCH] Changed encryption method from outdated version to new verison, compatible with Python 3.11.6 --- .gitignore | 3 ++- website/auth.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index e78890cf..18fed30b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .vscode website/__pycache__ -website/database.db \ No newline at end of file +website/database.db +instance/database.db \ No newline at end of file diff --git a/website/auth.py b/website/auth.py index 8c65752e..570c5cd8 100644 --- a/website/auth.py +++ b/website/auth.py @@ -56,7 +56,7 @@ def sign_up(): flash('Password must be at least 7 characters.', category='error') else: new_user = User(email=email, first_name=first_name, password=generate_password_hash( - password1, method='sha256')) + password1, method='pbkdf2:sha256')) db.session.add(new_user) db.session.commit() login_user(new_user, remember=True)