Skip to content

Commit

Permalink
fix regex for cookie_name to be general snake case (blakeblackshear#1…
Browse files Browse the repository at this point in the history
…4854)

* fix regex for cookie_name to be general snake case

* Update frigate/config/auth.py

Co-authored-by: Blake Blackshear <blake.blackshear@gmail.com>

---------

Co-authored-by: Blake Blackshear <blake.blackshear@gmail.com>
  • Loading branch information
bazylhorsey and blakeblackshear authored Nov 18, 2024
1 parent 0b203a3 commit 66f71ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frigate/config/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 66f71ae

Please sign in to comment.