mirror of
https://github.com/pushbits/server.git
synced 2025-05-02 19:56:15 +02:00
Do not overwrite admin account information
This commit is contained in:
parent
505cf4a519
commit
7985426a9f
1 changed files with 0 additions and 6 deletions
|
@ -91,12 +91,6 @@ func (d *Database) Populate(name, password, matrixID string) error {
|
|||
}
|
||||
} else {
|
||||
log.Printf("Admin user %s already exists.\n", name)
|
||||
|
||||
user.PasswordHash = d.credentialsManager.CreatePasswordHash(password)
|
||||
user.IsAdmin = true
|
||||
user.MatrixID = matrixID
|
||||
|
||||
d.gormdb.Save(&user)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Add table
Reference in a new issue