From 68ee6b37a12899e53ecd0b2124de5aed708af07b Mon Sep 17 00:00:00 2001 From: Bazyl Ichabod Horsey <31446064+bazylhorsey@users.noreply.github.com> Date: Thu, 7 Nov 2024 19:46:48 -0500 Subject: [PATCH] fix regex for cookie_name to be general snake case --- frigate/config/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/config/auth.py b/frigate/config/auth.py index 91a692461..b82e82014 100644 --- a/frigate/config/auth.py +++ b/frigate/config/auth.py @@ -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(