forked from Github/frigate
fix regex for cookie_name to be general snake case (#14854)
* 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>
This commit is contained in:
committed by
GitHub
parent
0b203a3673
commit
66f71aecf7
@@ -13,7 +13,7 @@ class AuthConfig(FrigateBaseModel):
|
|||||||
default=False, title="Reset the admin password on startup"
|
default=False, title="Reset the admin password on startup"
|
||||||
)
|
)
|
||||||
cookie_name: str = Field(
|
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")
|
cookie_secure: bool = Field(default=False, title="Set secure flag on cookie")
|
||||||
session_length: int = Field(
|
session_length: int = Field(
|
||||||
|
|||||||
Reference in New Issue
Block a user