mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-05-26 06:19:00 +02:00
Fixed PLR6201 (literal-membership): Use a set literal when testing for membership
This commit is contained in:
committed by
Joshua Tauberer
parent
cb922ec286
commit
49124cc9ca
@@ -48,7 +48,7 @@ class AuthService:
|
||||
return username, password
|
||||
|
||||
username, password = parse_http_authorization_basic(request.headers.get('Authorization', ''))
|
||||
if username in (None, ""):
|
||||
if username in {None, ""}:
|
||||
raise ValueError("Authorization header invalid.")
|
||||
|
||||
if username.strip() == "" and password.strip() == "":
|
||||
|
||||
Reference in New Issue
Block a user