MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / get_admin_token_from_cookie

Function get_admin_token_from_cookie

src/api/admin.py:712–714  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

710 @field_validator("login_account")
711 @classmethod
712 def validate_login_account(cls, value: Optional[str]) -> Optional[str]:
713 if value is None:
714 return None
715 normalized = value.strip().lower()
716 if not re.fullmatch(r"[^\s@]+@[^\s@]+\.[^\s@]+", normalized):
717 raise ValueError("login_account must be a valid email address")

Callers 1

verify_admin_tokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected