mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-11 13:45:25 +03:00
default cookie name should pass regex test
This commit is contained in:
parent
952df23ea6
commit
aa1d02de09
@ -126,7 +126,7 @@ class UserConfig(FrigateBaseModel):
|
|||||||
class AuthConfig(FrigateBaseModel):
|
class AuthConfig(FrigateBaseModel):
|
||||||
enabled: bool = Field(default=False, title="Enable authentication")
|
enabled: bool = Field(default=False, title="Enable authentication")
|
||||||
cookie_name: str = Field(
|
cookie_name: str = Field(
|
||||||
default="jwt.token", title="Name for jwt token cookie", pattern=r"^[a-z]_*$"
|
default="frigate_token", title="Name for jwt token cookie", pattern=r"^[a-z]_*$"
|
||||||
)
|
)
|
||||||
session_length: int = Field(
|
session_length: int = Field(
|
||||||
default=86400, title="Session length for jwt session tokens", ge=60
|
default=86400, title="Session length for jwt session tokens", ge=60
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user