2
0
Эх сурвалжийг харах

fix: missing oauth2 login button

***NO_CI***
Nicolas Giard 7 жил өмнө
parent
commit
474ac645b1

+ 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')