devel:event:auth_password_generate
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 );
See also
- Code related to this event used in any DokuWiki's files, plugins and templates
devel/event/auth_password_generate.txt · Last modified: 2018-12-08 15:01 by torpedo