[Fix] 🐛 Delete Debug Output of Password Hash

This commit is contained in:
Harry-zklcdc 2025-02-09 14:35:02 +08:00
parent 7b405dee22
commit a6d4d48cf3

View File

@ -1,7 +1,6 @@
package models
import (
"fmt"
"megrez/libs/crypto"
"megrez/services/config"
"strconv"
@ -26,7 +25,6 @@ type Users struct {
}
func (u *Users) PasswordHash(password string) string {
fmt.Println(password, u.CreatedAt.UnixMicro(), config.GetSystemSalt())
return crypto.Sha256(password + strconv.FormatInt(u.CreatedAt.UnixMicro(), 10) + config.GetSystemSalt())
}