fix logout bug

This commit is contained in:
Mario Voigt 2023-04-12 11:51:00 +02:00
parent df71c15e63
commit bda3ae89e8

View File

@ -104,7 +104,9 @@ function ldapauth_is_valid_user( $value ) {
$yourls_user_passwords[$username]='phpass:ThereIsNoPasswordButHey,WhoCares?';
}
yourls_set_user( $_SESSION['LDAPAUTH_AUTH_USER'] );
return true;
//return true; //modified 12.04.2023 by vmario. function must return null to match shunt_is_valid_user in functions-auth.php
return null;
} else {
ldapauth_debug($username . ' is not admin user.');
return $value;