1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<?php
namespace Garradin;
use Garradin\Membres\Session;
const LOGIN_PROCESS = true;
require_once __DIR__ . '/_inc.php';
$error = false;
if (trim(qg('c')))
{
if (Session::recoverPasswordConfirm(qg('c')))
{
Utils::redirect('/admin/password.php?new_sent');
}
|
<
<
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<?php
namespace Garradin;
use Garradin\Membres\Session;
const LOGIN_PROCESS = true;
require_once __DIR__ . '/_inc.php';
if (trim(qg('c')))
{
if (Session::recoverPasswordConfirm(qg('c')))
{
Utils::redirect('/admin/password.php?new_sent');
}
|
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
Utils::redirect('/admin/password.php?sent');
}
$form->addError('Ce membre n\'a pas d\'adresse email enregistrée ou n\'a pas le droit de se connecter.');
}
}
if (!$error && null !== qg('sent'))
{
$tpl->assign('sent', true);
}
elseif (!$error && null !== qg('new_sent'))
{
$tpl->assign('new_sent', true);
}
$champs = $config->get('champs_membres');
$champ = $champs->get($config->get('champ_identifiant'));
$tpl->assign('champ', $champ);
$tpl->assign('error', $error);
$tpl->display('admin/password.tpl');
|
|
|
<
<
|
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
Utils::redirect('/admin/password.php?sent');
}
$form->addError('Ce membre n\'a pas d\'adresse email enregistrée ou n\'a pas le droit de se connecter.');
}
}
if (!$form->hasErrors() && null !== qg('sent'))
{
$tpl->assign('sent', true);
}
elseif (!$form->hasErrors() && null !== qg('new_sent'))
{
$tpl->assign('new_sent', true);
}
$champs = $config->get('champs_membres');
$champ = $champs->get($config->get('champ_identifiant'));
$tpl->assign('champ', $champ);
$tpl->display('admin/password.tpl');
|