Restructure again

This commit is contained in:
Eden Kirin
2023-10-26 16:49:24 +02:00
parent 7512d75a4d
commit dd671d561c
5 changed files with 32 additions and 27 deletions

View File

@ -20,7 +20,7 @@ func (u *User) TableName() string {
}
// func (u *User) SetPassword(password string) (string, error) {
// secretKey := Config.Application.SecretKey
// bytes, err := bcrypt.GenerateFromPassword([]byte(password), 14)
// secretKey := common.Config.Application.SecretKey
// bytes, err := bcrypt.GenerateFromPassword([]byte(password+secretKey), 14)
// return string(bytes), err
// }