Logout when clicking on profile icon

This commit is contained in:
Peter Stockings
2023-12-21 21:23:12 +11:00
parent e124025568
commit c03c650da0
4 changed files with 23 additions and 6 deletions

2
db.py
View File

@@ -103,5 +103,5 @@ ORDER BY invocation_time DESC""", [http_function_id])
def create_new_user(self, username, password_hash):
new_user = self.execute(
'INSERT INTO users (username, password_hash) VALUES (%s, %s) RETURNING id, username, password_hash, created_at', [username, password_hash], commit=True)
'INSERT INTO users (username, password_hash) VALUES (%s, %s) RETURNING id, username, password_hash, created_at', [username, password_hash], commit=True, one=True)
return new_user