Sec: Fix security login mutualized function.
This commit is contained in:
parent
a15d4e4b8a
commit
cd4d04281b
@ -155,6 +155,7 @@ require_once("master.inc.php");
|
|||||||
register_shutdown_function('dol_shutdown');
|
register_shutdown_function('dol_shutdown');
|
||||||
|
|
||||||
// Detection browser
|
// Detection browser
|
||||||
|
// TODO rename conf->browser into user->browser
|
||||||
if (isset($_SERVER["HTTP_USER_AGENT"]))
|
if (isset($_SERVER["HTTP_USER_AGENT"]))
|
||||||
{
|
{
|
||||||
// If phone/smartphone, we set phone os name.
|
// If phone/smartphone, we set phone os name.
|
||||||
@ -337,9 +338,10 @@ if (! defined('NOLOGIN'))
|
|||||||
// Verification security graphic code
|
// Verification security graphic code
|
||||||
if (isset($_POST["username"]) && ! empty($conf->global->MAIN_SECURITY_ENABLECAPTCHA))
|
if (isset($_POST["username"]) && ! empty($conf->global->MAIN_SECURITY_ENABLECAPTCHA))
|
||||||
{
|
{
|
||||||
require_once(ARTICHOW_PATH.'Artichow.cfg.php');
|
require_once DOL_DOCUMENT_ROOT.'/includes/artichow/Artichow.cfg.php';
|
||||||
require_once(ARTICHOW.'/AntiSpam.class.php');
|
require_once ARTICHOW."/AntiSpam.class.php";
|
||||||
|
|
||||||
|
// It creates an anti-spam object
|
||||||
$object = new AntiSpam();
|
$object = new AntiSpam();
|
||||||
|
|
||||||
// Verifie code
|
// Verifie code
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user