Logout when clicking on profile icon
This commit is contained in:
2
db.py
2
db.py
@@ -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
|
||||
Reference in New Issue
Block a user