blob: c0593d69a59a6981777047d60acf50233b29d7f4 [file] [log] [blame]
Marc Kupietz97afde42023-03-04 14:12:46 +01001<h1>Reset your <?php echo $SERVICE_ACRONYM;?> password</h1>
matheusfillipef43dd962021-05-13 23:27:01 -03002
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 Kupietz493198f2023-03-04 14:59:16 +010013 <?php if($CAPTCHA_LENGTH > 0): ?>
matheusfillipef43dd962021-05-13 23:27:01 -030014 <!--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 Kupietzb527e642023-02-23 10:04:21 +010025 <input pattern="[^\s]{<?php echo $CAPTCHA_LENGTH; ?>,}" required title="Please fill the captcha. It has 5 characters" name="captcha"
matheusfillipef43dd962021-05-13 23:27:01 -030026 type="text" id="form3Example6" class="form-control" placeholder="Type what you see on the image above" />
27 </div>
Marc Kupietz493198f2023-03-04 14:59:16 +010028 <?php endif; ?>
matheusfillipef43dd962021-05-13 23:27:01 -030029
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>