dolibarr/htdocs/core/modules/security/generate
Laurent Destailleur 8a4613176c Fix warnings
2022-12-28 16:26:07 +01:00
..
modGeneratePassNone.class.php NEW Add picto property on sub-module for paswword generation 2022-09-11 12:18:43 +02:00
modGeneratePassPerso.class.php Fix warnings 2022-12-28 16:26:07 +01:00
modGeneratePassStandard.class.php NEW Add picto property on sub-module for paswword generation 2022-09-11 12:18:43 +02:00
modules_genpassword.php NEW Add picto property on sub-module for paswword generation 2022-09-11 12:18:43 +02:00
README FIX a lot of problem with rules for password validation 2022-01-03 16:09:08 +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 your own password generator:


***** STEP 1 *****

Copy file
htdocs/core/modules/security/modGeneratePassNone.class.php
into
htdocs/core/modules/mailings/modGeneratePassMygenerator.class.php

You can choose value of your choice instead of "Mygenerator" in name of new file.


***** STEP 2 *****

Edit this file modGeneratePassMygenerator.class.php and change following text:

"class modGeneratePassNone"     into    "class modGeneratePassMygenerator"

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.