{{/* 这些样式与内置模板保持一致, 同时作用于登录/注册/绑定账号页 */}}
{{template "base/alert" .}}
{{$hasExternalAuth := or .OAuth2Providers .EnableOpenIDSignIn .EnableSSPI}} {{if $hasExternalAuth}}

登录 {{AppName}}

同学们请使用高程统一身份认证登录, 账号密码与文档作业网站、编程作业网站相同。

{{template "user/auth/external_auth_methods" .}}
{{end}} {{if .EnablePasswordSignInForm}}

管理员登录

此入口仅管理员与助教使用(本地账号)。同学们请使用上方的高程统一身份认证登录。

{{if not .DisablePassword}}
{{ctx.Locale.Tr "auth.forgot_password"}}
{{end}}
{{template "user/auth/captcha" .}}
{{end}} {{if .ShowRegistrationButton}}
{{ctx.Locale.Tr "auth.need_account"}} {{ctx.Locale.Tr "auth.sign_up_now"}}
{{end}}