mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-12 01:57:36 +03:00
add config field
This commit is contained in:
parent
d6f5d2b0fa
commit
1754aae488
@ -38,6 +38,13 @@ class AuthConfig(FrigateBaseModel):
|
|||||||
default_factory=dict,
|
default_factory=dict,
|
||||||
title="Role to camera mappings. Empty list grants access to all cameras.",
|
title="Role to camera mappings. Empty list grants access to all cameras.",
|
||||||
)
|
)
|
||||||
|
admin_first_time_login: Optional[bool] = Field(
|
||||||
|
default=False,
|
||||||
|
title="Internal field to expose first-time admin login flag to the UI",
|
||||||
|
description=(
|
||||||
|
"When true the UI may show a help link on the login page informing users how to sign in after an admin password reset. "
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
@field_validator("roles")
|
@field_validator("roles")
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user