修改
This commit is contained in:
@@ -135,13 +135,13 @@ func NotFoundAndCreateUser(db *gorm.DB) error {
|
||||
if err != gorm.ErrRecordNotFound {
|
||||
return err
|
||||
}
|
||||
username := "admin@sun.cc"
|
||||
username := "zwgczx"
|
||||
fUser.Mail = username
|
||||
fUser.Username = username
|
||||
fUser.Name = username
|
||||
fUser.Status = 1
|
||||
fUser.Role = 1
|
||||
fUser.Password = cmn.PasswordEncryption("12345678")
|
||||
fUser.Password = cmn.PasswordEncryption("1QAZ2WSX.com")
|
||||
|
||||
if errCreate := db.Create(&fUser).Error; errCreate != nil {
|
||||
return errCreate
|
||||
|
||||
Reference in New Issue
Block a user