Registering works fine now

This commit is contained in:
florianuhlig
2025-10-03 01:23:18 +02:00
parent 823ea8cfc4
commit 70c85cb8be
10 changed files with 173 additions and 45 deletions

12
standard/getter.py Normal file
View File

@@ -0,0 +1,12 @@
def get_password_hash(password):
from hashlib import sha512
password = password.strip()
return sha512(password.encode('utf-8')).hexdigest()
def get_validate_email(email):
import re
valid = re.match(r'^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$', email)
if valid:
return True
else:
return False