| Marc Kupietz | 97afde4 | 2023-03-04 14:12:46 +0100 | [diff] [blame] | 1 | <h1>Reset your <?php echo $SERVICE_ACRONYM;?> password</h1> | 
| matheusfillipe | f43dd96 | 2021-05-13 23:27:01 -0300 | [diff] [blame] | 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 |  | 
| Marc Kupietz | 493198f | 2023-03-04 14:59:16 +0100 | [diff] [blame^] | 13 |     <?php if($CAPTCHA_LENGTH > 0): ?> | 
| matheusfillipe | f43dd96 | 2021-05-13 23:27:01 -0300 | [diff] [blame] | 14 |     <!--captcha here--> | 
 | 15 |     <div class="form-outline mb-3"> | 
 | 16 |  | 
 | 17 |         <label class="form-label font-weight-bold" for="form3Example4">Captcha:</label> | 
 | 18 |         <div class="container mb-2 offset-md-2"> | 
 | 19 |             <img id="captcha" src="<?php echo $BASE_URL.'/captcha.php?token='.$_SESSION['captcha_token']; ?>" /> | 
 | 20 |             <div id="reload_captcha"> | 
 | 21 |                 <button id="reload" class="btn btn-outline-info" type="button"> <span class="glyphicon glyphicon-refresh" | 
 | 22 |                     aria-hidden="true"></span></button> | 
 | 23 |             </div> | 
 | 24 |         </div> | 
| Marc Kupietz | b527e64 | 2023-02-23 10:04:21 +0100 | [diff] [blame] | 25 |         <input pattern="[^\s]{<?php echo $CAPTCHA_LENGTH; ?>,}" required title="Please fill the captcha. It has 5 characters" name="captcha" | 
| matheusfillipe | f43dd96 | 2021-05-13 23:27:01 -0300 | [diff] [blame] | 26 |             type="text" id="form3Example6" class="form-control" placeholder="Type what you see on the image above" /> | 
 | 27 |     </div> | 
| Marc Kupietz | 493198f | 2023-03-04 14:59:16 +0100 | [diff] [blame^] | 28 |     <?php endif; ?> | 
| matheusfillipe | f43dd96 | 2021-05-13 23:27:01 -0300 | [diff] [blame] | 29 |  | 
 | 30 |     <!-- Submit button --> | 
 | 31 |     <button name="type" value="recover" type="submit" class="btn btn-primary float-right btn-md">Confirm</button> | 
 | 32 |  | 
 | 33 | </form> | 
 | 34 | </div> |