1
0
Fork 0
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:
irismarie 2021-03-16 11:35:30 +01:00
parent aef66f625a
commit 1f490e34e5

View file

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