|
|
|
@@ -117,7 +117,7 @@ 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 == "" { |
|
|
|
} else if setting.PhoneService.Enabled && ctx.User.IsActive && ctx.User.PhoneNumber == "" { |
|
|
|
ctx.Data["Title"] = ctx.Tr("phone.bind_phone") |
|
|
|
ctx.HTML(200, "user/auth/bind_phone") |
|
|
|
return |
|
|
|
|