dolibarr/htdocs/core/login/README.txt

29 lines
1,009 B
Text
Raw Normal View History

README (English)
---------------------------------------------
Description of htdocs/core/login directory
---------------------------------------------
2023-04-19 20:21:14 +00:00
This directory contains files that handle the way to validate passwords.
2023-04-19 20:21:14 +00:00
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.
2026-01-07 18:01:54 +00:00
This file must be called for example :
2023-04-19 20:21:14 +00:00
functions_mypasschecker.php
2023-04-19 20:21:14 +00:00
Edit the function name to call it:
check_user_mypasschecker
2023-04-19 20:21:14 +00:00
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
2023-04-19 20:21:14 +00:00
$dolibarr_main_authentication
parameter to set it to :
2023-04-19 20:21:14 +00:00
mypasschecker
2026-01-07 18:01:54 +00:00
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.
2023-04-19 20:21:14 +00:00
See page https://wiki.dolibarr.org/index.php?title=Authentication,_SSO_and_SSL for more information.