devel:event:auth_password_generate
This is an old revision of the document!
Table of Contents
AUTH_PASSWORD_GENERATE
- Description:
- Modify how new user passwords are generated
- DefaultAction:
- DokuWiki's pronouncable password generator
- Preventable:
- yes
- Added:
- 2013-06-16
This event is signalled by auth_pwgen() in inc/auth.php when a new password is generated, handlers can use it to check password policy compliancy or exchange the password generator completely.
Passed Data
The passed data contains an associative array with two keys. The foruser
key tells you for what user that password is generated. The password
is empty in the BEFORE event and contains the generated password in the AFTER event. Both events can modify the password.
$data = array( 'password' => '', 'foruser' => $foruser );
Plugins handling this event
The following plugins are known to handle this event and their source code may be a good start for understanding and implementing a handler yourself.
See also
devel/event/auth_password_generate.1371405302.txt.gz · Last modified: 2013-06-16 19:55 (external edit)