This commit is contained in:
2024-04-08 17:41:05 +08:00
parent 1dde3de9fa
commit 57fe832e38
21 changed files with 7917 additions and 10930 deletions
+2 -2
View File
@@ -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