We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad4b397 commit ff0155dCopy full SHA for ff0155d
code_submitter/auth.py
@@ -61,9 +61,12 @@ async def authenticate(
61
62
63
class DummyBackend(BasicAuthBackend):
64
+ def __init__(self, team: str = 'SRZ') -> None:
65
+ self.team = team
66
+
67
async def validate(self, username: str, password: str) -> ValidationResult:
68
if not username:
69
raise AuthenticationError("Must provide a username")
70
if not password:
71
raise AuthenticationError("Must provide a password")
- return ['authenticated'], User(username, 'SRZ')
72
+ return ['authenticated'], User(username, self.team)
0 commit comments