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,14 +192,24 @@ 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']);
|
||||
$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