Skip to content
Snippets Groups Projects
Select Git revision
  • 3.7.3
  • 3.9 default
  • develop
  • 6.0
  • 5.0
  • 4.0
  • scrutinizer-patch-4
  • scrutinizer-patch-3
  • scrutinizer-patch-2
  • scrutinizer-patch-1
  • 3.7
  • 3.8
  • 3.6
  • 3.9_backported
  • 3.8_backported
  • 3.7_backported
  • 3.5
  • 3.6_backported
  • 3.5_backported
  • 3.4
  • 3.3_backported
  • 6.0.4
  • 6.0.3
  • 5.0.7
  • 6.0.2
  • 6.0.1
  • 5.0.6
  • 6.0.0
  • 5.0.5
  • 6.0.0-rc
  • 5.0.4
  • 6.0.0-beta
  • 5.0.3
  • 4.0.6
  • 5.0.2
  • 5.0.1
  • 4.0.5
  • 5.0.0
  • 4.0.4
  • 5.0.0-rc2
  • 5.0.0-rc1
41 results

generate

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Laurent Destailleur authored
    Conflicts:
    	htdocs/product/class/product.class.php
    4a88c9ea
    History
    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.