* fix getting device from empty list

* Overwrite all fields

* Fix header too low
This commit is contained in:
Nicolas Mowen
2024-10-07 07:18:09 -06:00
committed by GitHub
parent dcaed0e90f
commit 74047453ef
3 changed files with 10 additions and 2 deletions

View File

@@ -533,6 +533,7 @@ class FrigateApp:
{
User.username: "admin",
User.password_hash: password_hash,
User.notification_tokens: [],
}
).execute()
@@ -549,7 +550,11 @@ class FrigateApp:
password_hash = hash_password(
password, iterations=self.config.auth.hash_iterations
)
User.replace(username="admin", password_hash=password_hash).execute()
User.replace(
username="admin",
password_hash=password_hash,
notification_tokens=[],
).execute()
logger.info("********************************************************")
logger.info("********************************************************")