forked from Github/frigate
Bug Fixes (#14193)
* fix getting device from empty list * Overwrite all fields * Fix header too low
This commit is contained in:
@@ -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("********************************************************")
|
||||
|
||||
Reference in New Issue
Block a user