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