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
This commit is contained in:
James E. Blair 2021-12-16 17:08:20 -08:00
parent dbed876f6c
commit b5bbe7d3c1
1 changed files with 1 additions and 1 deletions

View File

@ -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,
})