mirror of https://github.com/CIRCL/lookyloo
fix: return from is_valid_username
parent
7b06ce399b
commit
6595d92df0
|
@ -51,7 +51,7 @@ def load_user_from_request(request: Request) -> User | None:
|
|||
return None
|
||||
|
||||
def is_valid_username(username: str) -> bool:
|
||||
return re.match("^[A-Za-z0-9]+$", username)
|
||||
return bool(re.match("^[A-Za-z0-9]+$", username))
|
||||
|
||||
@lru_cache(64)
|
||||
def build_keys_table() -> dict[str, str]:
|
||||
|
|
Loading…
Reference in New Issue