To_DO: ERROR AFTER LOGGING IN

This commit is contained in:
florianuhlig
2025-10-03 15:03:18 +02:00
parent 70c85cb8be
commit 1554723ed4
27 changed files with 1484 additions and 273 deletions

17
OLD/sqlLite/set.py Normal file
View File

@@ -0,0 +1,17 @@
from hashlib import sha512
import sqlite3
import standard.getter as st_getter
from . import db_name
def set_login(username, email, password):
db_con = sqlite3.connect(db_name)
db_cur = db_con.cursor()
try:
if st_getter.get_validate_email(email):
db_cur.execute("INSERT INTO T_USERS (USERNAME, EMAIL, PASSWORD) VALUES (?,?,?)", (username ,email , st_getter.get_password_hash(password)))
db_con.commit()
else:
print("Email entered is not valid")
except sqlite3.IntegrityError:
print("Username or Email entered is not unique")
db_con.close()