mirror of
https://github.com/simon987/task_tracker.git
synced 2025-12-14 07:19:02 +00:00
some bug fixes, some optimizations
This commit is contained in:
@@ -104,8 +104,8 @@ func (database *Database) UpdateManager(manager *Manager) {
|
||||
func (database *Database) UpdateManagerPassword(manager *Manager, newPassword []byte) {
|
||||
|
||||
hash := crypto.SHA512.New()
|
||||
hash.Write([]byte(manager.Username))
|
||||
hash.Write(newPassword)
|
||||
hash.Write([]byte(manager.Username))
|
||||
hashedPassword := hash.Sum(nil)
|
||||
|
||||
db := database.getDB()
|
||||
|
||||
Reference in New Issue
Block a user