From ce283b6546f34640cfc10777d9ccb45a1a3b6d84 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 19 Apr 2023 22:21:14 +0200 Subject: [PATCH] Doc --- htdocs/core/login/README.txt | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/htdocs/core/login/README.txt b/htdocs/core/login/README.txt index 8128dfacd57..0231ef807fa 100644 --- a/htdocs/core/login/README.txt +++ b/htdocs/core/login/README.txt @@ -3,24 +3,27 @@ README (english) Decription of htdocs/core/login directory --------------------------------------------- -This directory contains files that handle way to validate passwords. +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 example of already existing files. +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 + functions_mypasschecker.php -Edit function name to call it: -check_user_mypasschecker +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. +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 + $dolibarr_main_authentication parameter to set it to : -mypasschecker + 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. +