This commit is contained in:
2024-12-09 20:30:19 +01:00
parent d080b6287c
commit 9b5f3b23fb
13 changed files with 636 additions and 43 deletions

8
web/auth.py Normal file
View File

@@ -0,0 +1,8 @@
from werkzeug.security import check_password_hash, generate_password_hash
def encrypt_password(password):
return generate_password_hash(password)
def check_password(stored_password, provided_password):
return check_password_hash(stored_password, provided_password)