-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcreate-new-password.php
44 lines (33 loc) · 1.16 KB
/
create-new-password.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html>
<head>
<title>Reset Your password</title>
<link rel="stylesheet" href="css/style3.css">
</head>
<body>
<div class="logo">
<p>Reset Your Password</p>
</div>
<div class="container">
<?php
$selector = $_GET['selector'];
$validator = $_GET['validator'];
if(empty($selector) || empty($validator)){
echo "Could not validate your request";
}else{
if(ctype_xdigit($selector) !== false && ctype_xdigit($validator) !==false){
?>
<form action="new-password.php" method="POST">
<input type="hidden" name="selector" value="<?php echo $selector ?>">
<input type="hidden" name="selector" value="<?php echo $validator ?>">
<input type="password" name="pwd" placeholder="Enter a new password">
<input type="password" name="pwd-repeat" placeholder="Confirm new password">
<button type="submit" name="reset-password-submit">Reset Password</button>
</form>
<?php
}
}
?>
</div>
</body>
</html>