diff --git a/internal/migrations/init.go b/internal/migrations/init.go index fed56b97..e1a6a829 100644 --- a/internal/migrations/init.go +++ b/internal/migrations/init.go @@ -151,6 +151,9 @@ func initSiteInfo(engine *xorm.Engine, language, siteName, siteURL, contactEmail Content: string(loginConfigDataBytes), Status: 1, }) + if err != nil { + return err + } seoData := map[string]string{ "robots": defaultSEORobotTxt + siteURL + "/sitemap.xml", diff --git a/internal/service/user_service.go b/internal/service/user_service.go index 3bd4410c..391294c0 100644 --- a/internal/service/user_service.go +++ b/internal/service/user_service.go @@ -316,6 +316,7 @@ func (us *UserService) UserRegisterByEmail(ctx context.Context, registerUserInfo userInfo.IPInfo = registerUserInfo.IP userInfo.MailStatus = entity.EmailStatusToBeVerified userInfo.Status = entity.UserStatusAvailable + userInfo.LastLoginDate = time.Now() err = us.userRepo.AddUser(ctx, userInfo) if err != nil { return nil, err diff --git a/ui/src/components/Header/index.scss b/ui/src/components/Header/index.scss index e8c1c436..9afd32f4 100644 --- a/ui/src/components/Header/index.scss +++ b/ui/src/components/Header/index.scss @@ -53,7 +53,7 @@ // style for colored navbar &.theme-light { - background: linear-gradient(180deg, rgb(var(--bs-light-rgb)) 0%, rgba(var(--bs-light-rgb), 0.95) 100%); + background: linear-gradient(180deg, rgb(255, 255, 255) 0%, rgba(255, 255, 255, 0.95) 100%); } } diff --git a/ui/src/index.scss b/ui/src/index.scss index 4cc4c718..b4ceeaaa 100644 --- a/ui/src/index.scss +++ b/ui/src/index.scss @@ -215,7 +215,6 @@ a { max-width: 100%; } p { - word-break: break-word; > code { background-color: #e9ecef; color: #212529;