Fix security. Login check must be done if action=login only.
This commit is contained in:
parent
7cd8d82636
commit
197bf61cfd
@ -553,7 +553,7 @@ if (! defined('NOLOGIN'))
|
|||||||
// Validation of login/pass/entity
|
// Validation of login/pass/entity
|
||||||
// If ok, the variable login will be returned
|
// If ok, the variable login will be returned
|
||||||
// If error, we will put error message in session under the name dol_loginmesg
|
// If error, we will put error message in session under the name dol_loginmesg
|
||||||
if ($test && $goontestloop)
|
if ($test && $goontestloop && GETPOST('action', 'aZ09') == 'login')
|
||||||
{
|
{
|
||||||
$login = checkLoginPassEntity($usertotest, $passwordtotest, $entitytotest, $authmode);
|
$login = checkLoginPassEntity($usertotest, $passwordtotest, $entitytotest, $authmode);
|
||||||
if ($login)
|
if ($login)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user