4 const LOGIN_PROCESS
= true;
6 require_once __DIR__
. '/_inc.php';
10 if (trim(utils
::get('c')))
12 if ($membres->recoverPasswordConfirm(utils
::get('c')))
14 utils
::redirect('/admin/password.php?new_sent');
19 elseif (!empty($_POST['recover']))
21 if (!utils
::CSRF_check('recoverPassword'))
27 if (trim(utils
::post('id')) && $membres->recoverPasswordCheck(utils
::post('id')))
29 utils
::redirect('/admin/password.php?sent');
36 if (!$error && isset($_GET['sent']))
38 $tpl->assign('sent', true);
40 elseif (!$error && isset($_GET['new_sent']))
42 $tpl->assign('new_sent', true);
46 $champs = $config->get('champs_membres');
48 $champ = $champs->get($config->get('champ_identifiant'));
50 $tpl->assign('champ', $champ);
52 $tpl->assign('error', $error);
54 $tpl->display('admin/password.tpl');