Browse Source

提交代码

tags/v1.22.1.4^2
ychao_1983 3 years ago
parent
commit
32b80f3659
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      modules/context/auth.go

+ 5
- 0
modules/context/auth.go View File

@@ -64,6 +64,11 @@ func Toggle(options *ToggleOptions) macaron.Handler {
ctx.Redirect(setting.AppSubURL + "/")
return
}

if ctx.QueryBool("course") {
ctx.Redirect(setting.AppSubURL + "/" + setting.Course.OrgName)
return
}
}

// Redirect to dashboard if user tries to visit any non-login page.


Loading…
Cancel
Save