mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-16 00:00:03 +01:00
Merge branch 'master' into feature-whitelabel
This commit is contained in:
commit
604e603384
1 changed files with 2 additions and 1 deletions
|
@ -39,9 +39,10 @@ class SidebarMenu extends React.Component {
|
|||
|
||||
static calculateState(prevState, props) {
|
||||
let config = LoginStore.getState().config;
|
||||
let externalauth = _.get(config, ['authentication', 'external', 'enabled']);
|
||||
let logout_url = _.get(config, ['authentication', 'logout_url']);
|
||||
|
||||
if (logout_url) {
|
||||
if (externalauth && logout_url) {
|
||||
return {
|
||||
externalAuth: true,
|
||||
logoutLink: logout_url,
|
||||
|
|
Loading…
Add table
Reference in a new issue