mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 07:35:27 +03:00
Overwrite all fields
This commit is contained in:
parent
7029a63166
commit
c50ec9b649
@ -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("********************************************************")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user