diff options
author | Christopher Smith <chris@jalakai.co.uk> | 2014-02-15 20:59:06 +0000 |
---|---|---|
committer | Christopher Smith <chris@jalakai.co.uk> | 2014-02-15 20:59:06 +0000 |
commit | 6ed3476b11fe6e9c4625fb28e8953ac26e8160fb (patch) | |
tree | 67debd881f74985cb9941facf1f69f090eab6251 /lib/plugins/usermanager/admin.php | |
parent | 221cb66533e11a3e20e642d760af06bb19f7e14b (diff) | |
download | rpg-6ed3476b11fe6e9c4625fb28e8953ac26e8160fb.tar.gz rpg-6ed3476b11fe6e9c4625fb28e8953ac26e8160fb.tar.bz2 |
fixes possibility of a user password change being sent out when a password couldn't be/wasn't changed
Diffstat (limited to 'lib/plugins/usermanager/admin.php')
-rw-r--r-- | lib/plugins/usermanager/admin.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/plugins/usermanager/admin.php b/lib/plugins/usermanager/admin.php index 156037f09..b9199e586 100644 --- a/lib/plugins/usermanager/admin.php +++ b/lib/plugins/usermanager/admin.php @@ -643,9 +643,9 @@ class admin_plugin_usermanager extends DokuWiki_Admin_Plugin { if ($ok = $this->_auth->triggerUserMod('modify', array($olduser, $changes))) { msg($this->lang['update_ok'],1); - if ($INPUT->has('usernotify') && $newpass) { + if ($INPUT->has('usernotify') && !empty($changes['pass'])) { $notify = empty($changes['user']) ? $olduser : $newuser; - $this->_notifyUser($notify,$newpass); + $this->_notifyUser($notify,$changes['pass']); } // invalidate all sessions |