mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 22:43:47 +01:00
- LSformElement_password : Bug dans la vérification du mot de passe via Ajax
This commit is contained in:
parent
3db41221ef
commit
c3f6da6fcb
1 changed files with 16 additions and 6 deletions
|
@ -192,13 +192,23 @@ class LSformElement_password extends LSformElement {
|
||||||
if ((isset($_REQUEST['attribute'])) && (isset($_REQUEST['objecttype'])) && (isset($_REQUEST['fieldValue'])) && (isset($_REQUEST['idform'])) && (isset($_REQUEST['objectdn'])) ) {
|
if ((isset($_REQUEST['attribute'])) && (isset($_REQUEST['objecttype'])) && (isset($_REQUEST['fieldValue'])) && (isset($_REQUEST['idform'])) && (isset($_REQUEST['objectdn'])) ) {
|
||||||
if (LSsession ::loadLSobject($_REQUEST['objecttype'])) {
|
if (LSsession ::loadLSobject($_REQUEST['objecttype'])) {
|
||||||
$object = new $_REQUEST['objecttype']();
|
$object = new $_REQUEST['objecttype']();
|
||||||
$form = $object -> getForm($_REQUEST['idform']);
|
|
||||||
$object -> loadData($_REQUEST['objectdn']);
|
$object -> loadData($_REQUEST['objectdn']);
|
||||||
$field=$form -> getElement($_REQUEST['attribute']);
|
$form = $object -> getForm($_REQUEST['idform']);
|
||||||
$val = $field -> verifyPassword($_REQUEST['fieldValue']);
|
if ($form) {
|
||||||
$data = array(
|
$field=$form -> getElement($_REQUEST['attribute']);
|
||||||
'verifyPassword' => $val
|
if ($field) {
|
||||||
);
|
$val = $field -> verifyPassword($_REQUEST['fieldValue']);
|
||||||
|
$data = array(
|
||||||
|
'verifyPassword' => $val
|
||||||
|
);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
LSdebug('Impossible de récupérer le LSformElement');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
LSdebug('Impossible de recuperer le LSform.');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue