forked from Ailur/burgernotes-server
Fixed it always removing the current session
This commit is contained in:
parent
05488938ef
commit
99b8eb4240
2
main
2
main
|
@ -523,7 +523,7 @@ async def apisessionsremove():
|
||||||
if userCookie is not None:
|
if userCookie is not None:
|
||||||
if user["id"] == userCookie["id"]:
|
if user["id"] == userCookie["id"]:
|
||||||
conn = get_db_connection()
|
conn = get_db_connection()
|
||||||
conn.execute("DELETE FROM sessions WHERE sessionid = ?", (userCookie["sessionid"],))
|
conn.execute("DELETE FROM sessions WHERE sessionid = ?", (sessionId,))
|
||||||
conn.commit()
|
conn.commit()
|
||||||
conn.close()
|
conn.close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue