HEX
Server: Apache
System: Linux srv13.cpanelhost.cl 3.10.0-962.3.2.lve1.5.38.el7.x86_64 #1 SMP Thu Jun 18 05:28:41 EDT 2020 x86_64
User: cca63905 (4205)
PHP: 7.3.20
Disabled: NONE
Upload Files
File: /home4/cca63905/www/guiaweb/htdocs/core/login/README.txt
README (English)
---------------------------------------------
Description of htdocs/core/login directory
---------------------------------------------

This directory contains files that handle the way to validate passwords.

If you want to add a new password checker function, just add a file in this directory that follow an example of an already existing files.
This file must be called for example : 
 functions_mypasschecker.php

Edit the function name to call it:
 check_user_mypasschecker

Change code of this function to return true if couple $usertotest / $passwordtotest is ok for you.

Then, you must edit you conf.php file to change the value of
 $dolibarr_main_authentication
parameter to set it to :
 mypasschecker

Once this is done, when you log in to Dolibarr, the function 
check_user_mypasschecker in this file is called.
If the function return true and login exists, login is accepted.



See page https://wiki.dolibarr.org/index.php?title=Authentication,_SSO_and_SSL for more information.