spogulis no
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-03-15 17:37:22 +01:00
Fixed PLR6201 (literal-membership): Use a set literal when testing for membership
Šī revīzija ir iekļauta:
revīziju iesūtīja
Joshua Tauberer
vecāks
cb922ec286
revīzija
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() == "":
|
||||
|
||||
Atsaukties uz šo jaunā problēmā
Block a user