Fix login page redirected from password reset (#24032)

This commit is contained in:
Alexander Zobnin 2020-04-29 14:04:32 +03:00 committed by GitHub
parent 670c96a1db
commit afc78339bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ const loginServices: () => LoginServices = () => {
name: 'Google',
},
azuread: {
enabled: config.oauth.azuread,
enabled: oauthEnabled && config.oauth.azuread,
name: 'Microsoft',
},
github: {
@ -34,7 +34,7 @@ const loginServices: () => LoginServices = () => {
icon: 'grafana_com',
},
okta: {
enabled: config.oauth.okta,
enabled: oauthEnabled && config.oauth.okta,
name: 'Okta',
},
oauth: {