Fix security: A password must NEVER be stored as cookie. GETPOST must
analyse POST only.
This commit is contained in:
parent
1396f11b77
commit
cda17da8b1
@ -438,7 +438,7 @@ if (! defined('NOLOGIN'))
|
||||
}
|
||||
|
||||
$usertotest = (! empty($_COOKIE['login_dolibarr']) ? $_COOKIE['login_dolibarr'] : GETPOST("username","alpha",2));
|
||||
$passwordtotest = (! empty($_COOKIE['password_dolibarr']) ? $_COOKIE['password_dolibarr'] : GETPOST('password'));
|
||||
$passwordtotest = GETPOST('password','',2);
|
||||
$entitytotest = (GETPOST('entity','int') ? GETPOST('entity','int') : (!empty($conf->entity) ? $conf->entity : 1));
|
||||
|
||||
// Validation of login/pass/entity
|
||||
|
||||
Loading…
Reference in New Issue
Block a user