From bda3ae89e890a6716bec52d0a3175d6486c0ccf6 Mon Sep 17 00:00:00 2001 From: Mario Voigt Date: Wed, 12 Apr 2023 11:51:00 +0200 Subject: [PATCH] fix logout bug --- plugin.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin.php b/plugin.php index 5a239a4..0cc1110 100644 --- a/plugin.php +++ b/plugin.php @@ -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;