user creation flow with altcha verification

This commit is contained in:
Jack Case
2025-10-20 18:25:29 +00:00
parent 783c522234
commit cc8d4e9977
4 changed files with 54 additions and 6 deletions

View File

@@ -51,3 +51,10 @@ def get_user(email, engine):
with Session(engine) as session:
user = session.scalar(query)
return user
def create_user(email, password_hash, engine):
user = User(email=email, password_hash=password_hash, email_verified=False)
with Session(engine) as session:
session.add(user)
session.commit()