forked from Github/frigate
Update flask and restructure into api folder with apis put into separate folders (#10193)
* Update flask * Update flask and break apart different sections into different files * formatting * Fix test and add safety check
This commit is contained in:
@@ -151,7 +151,6 @@ class MqttConfig(FrigateBaseModel):
|
||||
|
||||
@field_validator("password")
|
||||
def user_requires_pass(cls, v, info: ValidationInfo):
|
||||
print(f"doing a check where {v} is None and {info.data['user']} is None")
|
||||
if (v is None) != (info.data["user"] is None):
|
||||
raise ValueError("Password must be provided with username.")
|
||||
return v
|
||||
|
||||
Reference in New Issue
Block a user