summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorJames E. Blair <jim@acmegating.com>2021-12-16 17:08:20 -0800
committerJames E. Blair <jim@acmegating.com>2021-12-16 17:08:20 -0800
commitb5bbe7d3c106f7edc40c5c82b92b77891a41d890 (patch)
tree1821d4031a09fee5d1771e2d5140f409e6fe6302 /web
parentdbed876f6c231e3318cdd09bb8a3b79204eb09fc (diff)
downloadzuul-b5bbe7d3c106f7edc40c5c82b92b77891a41d890.tar.gz
Fix login button check
We should be storing the capabilities.auth object as auth.info in redux rather than a second copy of the whole info object. This is used in only one place, to check whether the login button should be displayed. The error was causing it to never be displayed. This patch corrects that (and has been tested with multi-tenant, whitelabel, and sub-path configurations). Change-Id: I558ecf84f101150465eb5b62bc5787bf9a353793
Diffstat (limited to 'web')
-rw-r--r--web/src/actions/auth.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/src/actions/auth.js b/web/src/actions/auth.js
index fe818305a..1730e04f4 100644
--- a/web/src/actions/auth.js
+++ b/web/src/actions/auth.js
@@ -56,7 +56,7 @@ function createAuthParamsFromJson(json) {
const authConfigSuccess = (json, auth_params) => ({
type: AUTH_CONFIG_SUCCESS,
- info: json.info,
+ info: json.info.capabilities.auth,
auth_params: auth_params,
})