mirror of
https://github.com/XShengTech/MEGREZ.git
synced 2026-01-14 00:57:17 +08:00
[Chore] 📌 Use CreateTime Instead of Email as Salt
This commit is contained in:
parent
00d2539cbb
commit
2df88d1159
@ -24,7 +24,7 @@ type Users struct {
|
||||
}
|
||||
|
||||
func (u *Users) PasswordHash(password string) string {
|
||||
return crypto.Sha256(password + u.Email + config.GetSystemSalt())
|
||||
return crypto.Sha256(password + u.CreatedAt.GoString() + config.GetSystemSalt())
|
||||
}
|
||||
|
||||
func (u *Users) CheckPassword(password string) bool {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user