fix regex for cookie_name to be general snake case

This commit is contained in:
Bazyl Ichabod Horsey 2024-11-07 19:46:48 -05:00 committed by GitHub
parent ace02a6dfa
commit 68ee6b37a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,7 +13,7 @@ class AuthConfig(FrigateBaseModel):
default=False, title="Reset the admin password on startup"
)
cookie_name: str = Field(
default="frigate_token", title="Name for jwt token cookie", pattern=r"^[a-z]_*$"
default="frigate_token", title="Name for jwt token cookie", pattern=r"^[a-z]+(_[a-z]+)*$"
)
cookie_secure: bool = Field(default=False, title="Set secure flag on cookie")
session_length: int = Field(