浏览代码

fix: missing oauth2 login button

***NO_CI***
Nicolas Giard 7 年之前
父节点
当前提交
474ac645b1
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      server/views/auth/login.pug

+ 4 - 0
server/views/auth/login.pug

@@ -68,6 +68,10 @@ html(data-logic='login')
             button.slack(onclick='window.location.assign("/login/slack")')
               i.icon-slack
               span= t('auth:providers.slack')
+          if appconfig.auth.oauth2 && appconfig.auth.oauth2.enabled
+            button.slack(onclick='window.location.assign("/login/oauth2")')
+              i.icon-box
+              span= t('auth:providers.oauth2')
     #copyright
       = t('footer.poweredby') + ' '
       a.icon(href='https://github.com/Requarks/wiki')