mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 00:09:06 +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 (LSsession ::loadLSobject($_REQUEST['objecttype'])) {
|
||||
$object = new $_REQUEST['objecttype']();
|
||||
$form = $object -> getForm($_REQUEST['idform']);
|
||||
$object -> loadData($_REQUEST['objectdn']);
|
||||
$field=$form -> getElement($_REQUEST['attribute']);
|
||||
$val = $field -> verifyPassword($_REQUEST['fieldValue']);
|
||||
$data = array(
|
||||
'verifyPassword' => $val
|
||||
);
|
||||
$form = $object -> getForm($_REQUEST['idform']);
|
||||
if ($form) {
|
||||
$field=$form -> getElement($_REQUEST['attribute']);
|
||||
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