DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:event:auth_password_generate

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

devel/event/auth_password_generate.txt · Last modified: 2018-12-08 15:01 by torpedo

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki