generated from justuser-31/mrl_v1_license
Удаление сессии при удалении аккаунта.
This commit is contained in:
parent
d0edd7d459
commit
5e42798d14
@ -543,6 +543,7 @@ class FileServerHandler(BaseHTTPRequestHandler):
|
|||||||
os.rmdir(user_dir)
|
os.rmdir(user_dir)
|
||||||
|
|
||||||
cursor.execute("DELETE FROM users WHERE username = ?", (username,))
|
cursor.execute("DELETE FROM users WHERE username = ?", (username,))
|
||||||
|
cursor.execute("DELETE FROM sessions WHERE username = ?", (username,))
|
||||||
database.DB_CONN.commit()
|
database.DB_CONN.commit()
|
||||||
self.send_html("<h1>Account deleted</h1>")
|
self.send_html("<h1>Account deleted</h1>")
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user