mirror of
https://github.com/XShengTech/MEGREZ.git
synced 2026-01-13 16:47:16 +08:00
[Fix] 🐛 Delete Debug Output of Password Hash
This commit is contained in:
parent
7b405dee22
commit
a6d4d48cf3
@ -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())
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user