ci: expand CI checks and make consumer sync opt-in
- Add Go, npm, Python, and Java validation to CI - Run Go tests against PostgreSQL - Record performance fixes in the report
This commit is contained in:
1 parent
199a5efaef
commit
22887fef03
100 files changed
+9740
-429
No files matched your search
@@ -72,4 +72,5 @@ def _normalize_secret(value: str) -> str:
|
||||
|
||||
def _normalize_token(value: str) -> str:
|
||||
token = str(value or "").strip()
|
||||
return token if len(token) == TOTP_DIGITS and token.isdigit() else ""
|
||||
# str.isdigit() accepts other scripts' digits too, and hmac.compare_digest refuses those.
|
||||
return token if len(token) == TOTP_DIGITS and token.isascii() and token.isdigit() else ""
|
||||
Reference in new issue
Block a user