add config field

This commit is contained in:
Josh Hawkins 2025-10-22 11:14:15 -05:00
parent d6f5d2b0fa
commit 1754aae488

View File

@ -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