forked from Wavyzz/dolibarr
39 lines
1.1 KiB
Plaintext
Executable File
39 lines
1.1 KiB
Plaintext
Executable File
README (english)
|
|
------------------------------------
|
|
Adding your own password generator module
|
|
------------------------------------
|
|
|
|
|
|
If you want to add your own password generator module. This is steps to follow
|
|
to add you own password generator:
|
|
|
|
|
|
***** STEP 1 *****
|
|
|
|
Copy file
|
|
htdocs/includes/modules/security/modGeneratePassNone.class.php
|
|
into
|
|
htdocs/includes/modules/mailings/modMyGenerator.class.php
|
|
|
|
You can choose value of your choice instead of "myGenerator" in name
|
|
of new file.
|
|
|
|
|
|
***** STEP 2 *****
|
|
|
|
Edit this file modMyGenerator.class.php and change following text:
|
|
|
|
"class modGeneratePassNone" into "class modMyGenerator"
|
|
"function modGeneratePassNone" into "function modMyGenerator"
|
|
|
|
Then add code inside the "getDecription" function.
|
|
Then add code inside the "getExample" function.
|
|
Then add code inside the "getNewGeneratedPassword" function.
|
|
Then add code inside the "validatePassword" function.
|
|
|
|
|
|
***** STEP 3 *****
|
|
|
|
Once this file has been edited, you can go to the Dolibarr security setup,
|
|
choose tab "passwords", you will see a new line generator in the "Rules to generate passwords" area.
|