dolibarr/htdocs/core/modules/security/generate
2017-10-04 18:32:52 +02:00
..
index.html Removed index.php and replaced them with blank index.html as it is more appropriate 2014-07-12 23:18:57 +02:00
modGeneratePassNone.class.php Removed closing php tag 2014-05-03 18:18:44 +02:00
modGeneratePassPerso.class.php Fix: minimal num, maj and special character with value 0 not work 2017-10-04 18:32:52 +02:00
modGeneratePassStandard.class.php Removed closing php tag 2014-05-03 18:18:44 +02:00
modules_genpassword.php Removed closing php tag 2014-05-03 18:18:44 +02:00
README Fix #3930 Removed executable bit 2015-12-09 13:28:36 +01:00

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/core/modules/security/modGeneratePassNone.class.php
into
htdocs/core/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.