Restructure again
This commit is contained in:
@ -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
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user