Browse Source

提交代码

tags/v1.22.7.1
ychao_1983 3 years ago
parent
commit
5d05a6fe76
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      routers/home.go

+ 4
- 0
routers/home.go View File

@@ -117,6 +117,10 @@ func Dashboard(ctx *context.Context) {
ctx.Data["ChangePasscodeLink"] = setting.AppSubURL + "/user/change_password"
ctx.SetCookie("redirect_to", setting.AppSubURL+ctx.Req.URL.RequestURI(), 0, setting.AppSubURL)
ctx.Redirect(setting.AppSubURL + "/user/settings/change_password")
}else if ctx.User.IsActive && ctx.User.PhoneNumber == "" {
ctx.Data["Title"] = ctx.Tr("phone.bind_phone")
ctx.HTML(200, "user/auth/bind_phone")
return
} else {
user.Dashboard(ctx)
}


Loading…
Cancel
Save