matheusfillipe | f43dd96 | 2021-05-13 23:27:01 -0300 | [diff] [blame] | 1 | <h1>Change your password</h1> |
| 2 | |
| 3 | <form action="" method="POST"> |
| 4 | <!-- Email input --> |
| 5 | <div class="form-outline mb-3"> |
| 6 | <label class="form-label font-weight-bold" for="form3Example3">Email address*</label> |
| 7 | <input required name="email" type="email" id="form3Example3" |
| 8 | class="form-control <?php if(isset($error) && $error && !isset($_POST['email'])){echo 'border-danger';}?>" |
| 9 | placeholder="myemail@example.com" |
| 10 | value="<?php echo isset($_POST['email']) ? htmlspecialchars($_POST['email']) : '' ?>" /> |
| 11 | </div> |
| 12 | |
| 13 | <!--captcha here--> |
| 14 | <div class="form-outline mb-3"> |
| 15 | |
| 16 | <label class="form-label font-weight-bold" for="form3Example4">Captcha:</label> |
| 17 | <div class="container mb-2 offset-md-2"> |
| 18 | <img id="captcha" src="<?php echo $BASE_URL.'/captcha.php?token='.$_SESSION['captcha_token']; ?>" /> |
| 19 | <div id="reload_captcha"> |
| 20 | <button id="reload" class="btn btn-outline-info" type="button"> <span class="glyphicon glyphicon-refresh" |
| 21 | aria-hidden="true"></span></button> |
| 22 | </div> |
| 23 | </div> |
| 24 | <input pattern="[^\s]{<?php echo $CAPTCHA_LENGTH; ?>,}" required title="Please fill the captcha. It has 5 characteres" name="captcha" |
| 25 | type="text" id="form3Example6" class="form-control" placeholder="Type what you see on the image above" /> |
| 26 | </div> |
| 27 | |
| 28 | <!-- Submit button --> |
| 29 | <button name="type" value="recover" type="submit" class="btn btn-primary float-right btn-md">Confirm</button> |
| 30 | |
| 31 | </form> |
| 32 | </div> |