Skip to content

Commit b8fa7bc

Browse files
authored
Merge pull request #27 from ppolariss/main
fix: rename 旦夕; set HasAnsweredQuestions false by default
2 parents f9dfd31 + 70cc7a3 commit b8fa7bc

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

apis/account.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,9 @@ func register(c *fiber.Ctx, email, password string, batch bool) error {
286286
return err
287287
}
288288

289-
if !config.Config.EnableRegisterQuestions {
290-
user.HasAnsweredQuestions = true
291-
}
289+
// if !config.Config.EnableRegisterQuestions {
290+
// user.HasAnsweredQuestions = true
291+
// }
292292

293293
err = DB.Transaction(func(tx *gorm.DB) error {
294294
err = tx.Create(&user).Error
@@ -548,7 +548,7 @@ func verifyWithEmail(c *fiber.Ctx, email, givenScope string, check bool) error {
548548
// @Failure 409 {object} common.MessageResponse "用户已注册"
549549
// @Failure 500 {object} common.MessageResponse
550550
func VerifyWithApikey(_ *fiber.Ctx) error {
551-
return common.Forbidden("快捷登录/注册已停用,请返回并使用旦夕账户直接登录。注册账户请前往 https://auth.fduhole.com")
551+
return common.Forbidden("快捷登录/注册已停用,请返回并使用旦挞账户直接登录。注册账户请前往 https://auth.fduhole.com")
552552

553553
//var query ApikeyRequest
554554
//err := common.ValidateQuery(c, &query)
@@ -558,7 +558,7 @@ func VerifyWithApikey(_ *fiber.Ctx) error {
558558
//
559559
//scope := "register"
560560
//if !auth.CheckApikey(query.Apikey) {
561-
// return common.Forbidden("API Key 不正确,您可以选择使用旦夕账号登录,或者在 auth.fduhole.com 注册旦夕账户")
561+
// return common.Forbidden("API Key 不正确,您可以选择使用旦挞账号登录,或者在 auth.fduhole.com 注册旦挞账户")
562562
//}
563563
//ok, err := HasRegisteredEmail(DB, query.Email)
564564
//if err != nil {

0 commit comments

Comments
 (0)