1. Alexander Schremmer
  2. domination

Commits

Alexander Schremmer  committed 87f91d6

Minor fix, -a was slightly broken.

  • Participants
  • Parent commits 74df65b
  • Branches default

Comments (0)

Files changed (1)

File domination/main.py

View file
  • Ignore whitespace
 @app.before_request
 def before_request():
     if request.authorization and app.auth_enabled:
-        session["username"] = request.authorization.user
+        session["username"] = request.authorization.username
     if "username" in session and session["username"] not in app.users:
         app.users[session["username"]] = {"games": {}}
     session.permanent = True