Skip to content
Snippets Groups Projects
Commit 2400ddcb authored by Christopher Smith's avatar Christopher Smith
Browse files

correct mis-spelled var name and correct empty password fields test

parent 6c196437
No related branches found
No related tags found
No related merge requests found
......@@ -632,7 +632,7 @@ class admin_plugin_usermanager extends DokuWiki_Admin_Plugin {
}
}
if ($this->_auth->canDo('modPass')) {
if ($newpass || $confirm) {
if ($newpass || $passconfirm) {
if ($this->_verifyPassword($newpass,$passconfirm)) {
$changes['pass'] = $newpass;
} else {
......@@ -712,7 +712,7 @@ class admin_plugin_usermanager extends DokuWiki_Admin_Plugin {
protected function _verifyPassword($password, $confirm) {
global $lang;
if (empty($password)) {
if (empty($password) && empty($confirm)) {
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment