Skip to content

NVR with realtime local object detection for IP cameras

fix regex for cookie_name to be general snake case (#14854)

Bazyl Ichabod Horsey66f71aecf775
diff --git a/frigate/config/auth.py b/frigate/config/auth.py
index 91a692461b..a202fb1af6 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_]+$"
)
cookie_secure: bool = Field(default=False, title="Set secure flag on cookie")
session_length: int = Field(