From b5bbe7d3c106f7edc40c5c82b92b77891a41d890 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Thu, 16 Dec 2021 17:08:20 -0800 Subject: [PATCH] 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 --- web/src/actions/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/actions/auth.js b/web/src/actions/auth.js index fe818305aa..1730e04f40 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, })