summaryrefslogtreecommitdiff
path: root/lib/plugins/authldap/auth.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2014-05-18 20:33:21 +0200
committerAndreas Gohr <andi@splitbrain.org>2014-05-18 20:33:21 +0200
commit18496fe0decfb1382393daca3141bf315cda7254 (patch)
tree3ce049ddb02119212949de68afaaa948af1a4915 /lib/plugins/authldap/auth.php
parent38111df8da7d432ba9a723946149cd982d4c1944 (diff)
downloadrpg-18496fe0decfb1382393daca3141bf315cda7254.tar.gz
rpg-18496fe0decfb1382393daca3141bf315cda7254.tar.bz2
fixed undefined variable in LDAP plugin
Diffstat (limited to 'lib/plugins/authldap/auth.php')
-rw-r--r--lib/plugins/authldap/auth.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/plugins/authldap/auth.php b/lib/plugins/authldap/auth.php
index bda8f2abe..0d5e130ea 100644
--- a/lib/plugins/authldap/auth.php
+++ b/lib/plugins/authldap/auth.php
@@ -286,7 +286,7 @@ class auth_plugin_authldap extends DokuWiki_Auth_Plugin {
// find the old password of the user
list($loginuser,$loginsticky,$loginpass) = auth_getCookie();
if ($loginuser !== null) { // the user is currently logged in
- $secret = auth_cookiesalt(!$sticky, true);
+ $secret = auth_cookiesalt(!$loginsticky, true);
$pass = auth_decrypt($loginpass, $secret);
// bind with the ldap