summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2013-06-09 02:29:27 +0200
committerAndreas Gohr <andi@splitbrain.org>2013-06-09 02:29:27 +0200
commit8a285f7fa7f09ae969e12cf4b7bda0f5123bb0fb (patch)
treeccca7e422e0dc12f5439031ea36f26e017109a18 /lib
parent04e4890db370bdb57201f76581fe3dc0a3adb614 (diff)
downloadrpg-8a285f7fa7f09ae969e12cf4b7bda0f5123bb0fb.tar.gz
rpg-8a285f7fa7f09ae969e12cf4b7bda0f5123bb0fb.tar.bz2
AUTH_PASSWORD_GENERATE event added
This is needed to replace the password generator by a plugin implementation. Related to PR #166 and FS#2147
Diffstat (limited to 'lib')
-rw-r--r--lib/plugins/usermanager/admin.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/plugins/usermanager/admin.php b/lib/plugins/usermanager/admin.php
index 01f4a4cdb..445836a50 100644
--- a/lib/plugins/usermanager/admin.php
+++ b/lib/plugins/usermanager/admin.php
@@ -355,7 +355,7 @@ class admin_plugin_usermanager extends DokuWiki_Admin_Plugin {
if ($this->_auth->canDo('modPass')){
if (empty($pass)){
if($INPUT->has('usernotify')){
- $pass = auth_pwgen();
+ $pass = auth_pwgen($user);
} else {
msg($this->lang['add_fail'], -1);
return false;
@@ -496,7 +496,7 @@ class admin_plugin_usermanager extends DokuWiki_Admin_Plugin {
// generate password if left empty and notification is on
if($INPUT->has('usernotify') && empty($newpass)){
- $newpass = auth_pwgen();
+ $newpass = auth_pwgen($olduser);
}
if (!empty($newpass) && $this->_auth->canDo('modPass'))