This commit is contained in:
retoor 2024-12-05 19:39:02 +01:00
parent 8a450e4bfe
commit cecee2ff35
3 changed files with 5 additions and 5 deletions

Binary file not shown.

Binary file not shown.

View File

@ -33,11 +33,11 @@ class Application(BaseApplication):
ws = web.WebSocketResponse() ws = web.WebSocketResponse()
await ws.prepare(request) await ws.prepare(request)
session = request.session session = request.session
if not 'username' in session: if "username" not in session:
session['username'] = fake.name().split(" ")[0] session["username"] = fake.name().split(" ")[0]
session['uid'] = str(uuid.uuid4()) session["uid"] = str(uuid.uuid4())
session['session_id'] = session['uid'] session["session_id"] = session["uid"]
username = session["username"] username = session["username"]
session_id = session["session_id"] session_id = session["session_id"]
uid = session["uid"] uid = session["uid"]