Browse Source

提交代码

tags/v1.22.7.1
ychao_1983 3 years ago
parent
commit
2f6f2dcf5f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/context/auth.go

+ 1
- 1
modules/context/auth.go View File

@@ -53,7 +53,7 @@ func Toggle(options *ToggleOptions) macaron.Handler {
ctx.Data["Title"] = ctx.Tr("auth.prohibit_login")
ctx.HTML(200, "user/auth/prohibit_login")
return
} else if ctx.User.IsActive && ctx.User.PhoneNumber == "" {
} else if ctx.User.IsActive && ctx.User.PhoneNumber == "" && ctx.Req.URL.Path != "/bindPhone" {
ctx.Data["Title"] = ctx.Tr("phone.bind_phone")
ctx.HTML(200, "user/auth/bind_phone")
return


Loading…
Cancel
Save