blob: 65603546762551d2ea52ce6557a349014e18a535 [file] [log] [blame]
Marc Kupietzad3ab5d2023-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
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>
Marc Kupietzb527e642023-02-23 10:04:21 +010024 <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 -030025 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>