Browse Source

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
changes/62/822062/1
James E. Blair 5 months ago
parent
commit
b5bbe7d3c1
  1. 2
      web/src/actions/auth.js

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

Loading…
Cancel
Save