Fix action into actionlogin to avoid conflict
This commit is contained in:
parent
70882a749a
commit
58c38912ab
@ -91,7 +91,7 @@ $(document).ready(function () {
|
||||
|
||||
<form id="login" name="login" method="post" action="<?php echo $php_self; ?>">
|
||||
<input type="hidden" name="token" value="<?php echo $_SESSION['newtoken']; ?>" />
|
||||
<input type="hidden" name="action" value="login">
|
||||
<input type="hidden" name="actionlogin" value="login">
|
||||
<input type="hidden" name="loginfunction" value="loginfunction" />
|
||||
<!-- Add fields to send local user information -->
|
||||
<input type="hidden" name="tz" id="tz" value="" />
|
||||
|
||||
@ -553,7 +553,7 @@ if (!defined('NOLOGIN'))
|
||||
// Validation of login/pass/entity
|
||||
// If ok, the variable login will be returned
|
||||
// If error, we will put error message in session under the name dol_loginmesg
|
||||
if ($test && $goontestloop && GETPOST('action', 'aZ09') == 'login')
|
||||
if ($test && $goontestloop && GETPOST('actionlogin', 'aZ09') == 'login')
|
||||
{
|
||||
$login = checkLoginPassEntity($usertotest, $passwordtotest, $entitytotest, $authmode);
|
||||
if ($login)
|
||||
@ -611,8 +611,8 @@ if (!defined('NOLOGIN'))
|
||||
// End test login / passwords
|
||||
if (! $login || (in_array('ldap', $authmode) && empty($passwordtotest))) // With LDAP we refused empty password because some LDAP are "opened" for anonymous access so connexion is a success.
|
||||
{
|
||||
// No data to test login, so we show the login page
|
||||
dol_syslog("--- Access to ".$_SERVER["PHP_SELF"]." - action=".GETPOST('action', 'aZ09').", showing the login form and exit");
|
||||
// No data to test login, so we show the login page.
|
||||
dol_syslog("--- Access to ".$_SERVER["PHP_SELF"]." - action=".GETPOST('action', 'aZ09')." - actionlogin=".GETPOST('actionlogin', 'aZ09')." - showing the login form and exit");
|
||||
if (defined('NOREDIRECTBYMAINTOLOGIN')) return 'ERROR_NOT_LOGGED';
|
||||
else dol_loginfunction($langs, $conf, (! empty($mysoc)?$mysoc:''));
|
||||
exit;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user