DokuWiki

It's better when it's simple

User Tools

Site Tools


Sidebar

Translations of this page?:

Learn about DokuWiki

Advanced Use

Corporate Use

Our Community


Follow us on Facebook, Twitter and other social networks.

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
);

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.txt · Last modified: 2013-06-16 19:55 by andi