diff options
Diffstat (limited to 'src/view/password.php')
-rw-r--r-- | src/view/password.php | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/view/password.php b/src/view/password.php index aadfbae..b8a090e 100644 --- a/src/view/password.php +++ b/src/view/password.php | |||
@@ -10,14 +10,18 @@ | |||
10 | declare(strict_types=1); | 10 | declare(strict_types=1); |
11 | 11 | ||
12 | // insertion du captcha | 12 | // insertion du captcha |
13 | ob_start(); | 13 | $captchaHtml = ''; |
14 | ?> | 14 | if(isset($captcha)) // instance de Captcha? |
15 | { | ||
16 | ob_start(); | ||
17 | ?> | ||
15 | <p>Montrez que vous n'ĂȘtes pas un robot.<br> | 18 | <p>Montrez que vous n'ĂȘtes pas un robot.<br> |
16 | <label for="captcha" >Combien font <?= $captcha[0] ?> fois <?= $captcha[1] ?>?</label> | 19 | <label for="captcha" >Combien font <?= $captcha->getA() ?> fois <?= $captcha->getB() ?>?</label> |
17 | <input required type="text" id="captcha" name="captcha" autocomplete="off" size="1"> | 20 | <input required type="text" id="captcha" name="captcha" autocomplete="off" size="1"> |
18 | </p> | 21 | </p> |
19 | <?php | 22 | <?php |
20 | $captchaHtml = ob_get_clean(); | 23 | $captchaHtml = ob_get_clean(); |
24 | } | ||
21 | 25 | ||
22 | 26 | ||
23 | // formulaire connexion | 27 | // formulaire connexion |
@@ -70,9 +74,6 @@ ob_start(); | |||
70 | <input id="new_password" type="password" name="new_password" required autocomplete="off"> | 74 | <input id="new_password" type="password" name="new_password" required autocomplete="off"> |
71 | <br><br> | 75 | <br><br> |
72 | <input type="submit" value="Valider" > | 76 | <input type="submit" value="Valider" > |
73 | <!-- <a href="index.php<?= $from ?>" > | ||
74 | <input type="button" value="Annuler"> | ||
75 | </a> --> | ||
76 | </form> | 77 | </form> |
77 | <?php | 78 | <?php |
78 | $formulaireModifMDP = ob_get_clean(); | 79 | $formulaireModifMDP = ob_get_clean(); |