Merge branch 'main' into feature/bots

This commit is contained in:
Jason Song authored and GitHub committed 2022-11-29 11:09:20 +08:00
commit 797c21de1f
10 files changed
+36 -31

No files matched your search

+1 -1
View File
@@ -401,7 +401,7 @@ func hashPassword(passwd, salt, algo string) (string, error) {
tempPasswd = pbkdf2.Key([]byte(passwd), saltBytes, 10000, 50, sha256.New)
}
return fmt.Sprintf("%x", tempPasswd), nil
return hex.EncodeToString(tempPasswd), nil
}
// SetPassword hashes a password using the algorithm defined in the config value of PASSWORD_HASH_ALGO