Commit afc78339 by Alexander Zobnin Committed by GitHub

Fix login page redirected from password reset (#24032)

parent 670c96a1
...@@ -16,7 +16,7 @@ const loginServices: () => LoginServices = () => { ...@@ -16,7 +16,7 @@ const loginServices: () => LoginServices = () => {
name: 'Google', name: 'Google',
}, },
azuread: { azuread: {
enabled: config.oauth.azuread, enabled: oauthEnabled && config.oauth.azuread,
name: 'Microsoft', name: 'Microsoft',
}, },
github: { github: {
...@@ -34,7 +34,7 @@ const loginServices: () => LoginServices = () => { ...@@ -34,7 +34,7 @@ const loginServices: () => LoginServices = () => {
icon: 'grafana_com', icon: 'grafana_com',
}, },
okta: { okta: {
enabled: config.oauth.okta, enabled: oauthEnabled && config.oauth.okta,
name: 'Okta', name: 'Okta',
}, },
oauth: { oauth: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment