NEW add doAction hook in passwordforgotten page

This commit is contained in:
Regis Houssin 2020-12-11 13:31:50 +01:00
parent eedaca1476
commit 4d0ce326c4

View File

@ -64,6 +64,13 @@ if (GETPOST('dol_use_jmobile', 'alpha') || !empty($_SESSION['dol_use_jmobile']))
* Actions * Actions
*/ */
$parameters = array('username' => $username);
$reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
if ($reshook < 0) {
$message = $hookmanager->error;
}
if (empty($reshook)) {
// Validate new password // Validate new password
if ($action == 'validatenewpassword' && $username && $passwordhash) if ($action == 'validatenewpassword' && $username && $passwordhash)
{ {
@ -150,6 +157,7 @@ if ($action == 'buildnewpassword' && $username)
} }
} }
} }
}
/** /**