Skip to content

Commit 890e9d3

Browse files
committed
Improve UX when logged out
Note that the value of 'realm' also needed quoting.
1 parent 39118d6 commit 890e9d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

code_submitter/auth.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ def __init__(self, username: str, team: Optional[str]) -> None:
2929

3030
def auth_required_response(conn: HTTPConnection, exc: Exception) -> Response:
3131
return Response(
32-
headers={'WWW-Authenticate': 'Basic realm=Code Submitter'},
32+
"You must login to submit code.",
33+
headers={'WWW-Authenticate': 'Basic realm="Student Robotics\' Code Submitter"'},
3334
status_code=401,
3435
)
3536

0 commit comments

Comments
 (0)