diff options
author | Axel Angel <axel+git@vneko.ch> | 2014-05-08 12:19:39 +0200 |
---|---|---|
committer | Axel Angel <axel+git@vneko.ch> | 2014-05-08 12:21:33 +0200 |
commit | 8f2ea93bb09b8744de56a8797176d3a209c2e8d7 (patch) | |
tree | bd3577a8c274336774fb193f465b56e14ce2ddcd | |
parent | 67723447f02824ff2df7daa0f1f97d8b289c5d7a (diff) | |
download | rpg-8f2ea93bb09b8744de56a8797176d3a209c2e8d7.tar.gz rpg-8f2ea93bb09b8744de56a8797176d3a209c2e8d7.tar.bz2 |
Simplify code and remove unreachable check
-rw-r--r-- | lib/plugins/authldap/auth.php | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/plugins/authldap/auth.php b/lib/plugins/authldap/auth.php index ecbbc2a3a..bda8f2abe 100644 --- a/lib/plugins/authldap/auth.php +++ b/lib/plugins/authldap/auth.php @@ -278,17 +278,10 @@ class auth_plugin_authldap extends DokuWiki_Auth_Plugin { // find the information about the user, in particular the "dn" $info = $this->getUserData($user,true); if(empty($info['dn'])) { - msg('LDAP cannot find your user dn: '. htmlspecialchars($info['dn'])); - return false; - } else { - $dn = $info['dn']; - } - - // find the new password and encrypt it whit SSHA - if(empty($changes['pass'])) { - msg('The new password is not allow because it\'s empty'); + msg('LDAP cannot find your user dn'); return false; } + $dn = $info['dn']; // find the old password of the user list($loginuser,$loginsticky,$loginpass) = auth_getCookie(); |