mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
bugfix: redirect to correct logout link when ext auth disabled
This commit is contained in:
parent
aef66f625a
commit
1f490e34e5
1 changed files with 2 additions and 1 deletions
|
@ -38,9 +38,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