2
0
forked from Wavyzz/dolibarr
Files
dolibarr-fork/htdocs/core/modules/security/generate
MDW f4ff437026 Qual: Fix phan/phpstan notices in class files (part 4) (#31598)
* Qual: Fix phan notices for DolibarrModules.class

* Qual: Fix notices for classes actioncomm..task.class.php

* fixup! Qual: Fix notices for classes actioncomm..task.class.php

* Qual: Fix new notices blocking PR
2024-10-30 21:33:30 +01:00
..
2024-09-27 19:31:28 +02: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/generate/modGeneratePassNone.class.php
into
htdocs/core/modules/security/generate/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.