mirror of
https://github.com/pushbits/server.git
synced 2025-07-28 05:48:00 +02:00
Replace bcrypt with Argon2
This commit is contained in:
parent
0b871b2136
commit
d8b62f1b80
5 changed files with 25 additions and 11 deletions
|
@ -91,7 +91,7 @@ func (d *Database) Populate(name, password, matrixID string) error {
|
|||
} else {
|
||||
log.Printf("Admin user %s already exists.\n", name)
|
||||
|
||||
user.PasswordHash = credentials.CreatePassword(password)
|
||||
user.PasswordHash = credentials.CreatePasswordHash(password)
|
||||
user.IsAdmin = true
|
||||
user.MatrixID = matrixID
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue