This commit is contained in:
wintsa committed 2024-04-08 17:41:05 +08:00
1 parent 1dde3de9fa
commit 57fe832e38
21 files changed
+7917 -10930

No files matched your search

+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