-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnew-password.php
55 lines (51 loc) · 2.03 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
<?php
session_start();
if(!isset($_SESSION['forgotEmail'])) {
header('location: ./sign-in.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./common/forms.css">
<link rel="icon" type="image/png" href="images/favicon.png" sizes="80x80">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" />
<title>Forgot Password</title>
</head>
<body>
<section>
<div class="container">
<div class="user signInBox">
<div class="imgBx">
<img src="./images/signup-min.jpg" id="image" alt="">
</div>
<div class="formBx">
<form method="POST" id="forgotPasswordForm">
<div id="loading"></div>
<h3 class="logo">Somaiya Polytechnic</h3>
<h2>Update Password</h2>
<input required type="number" placeholder="Enter 6 digit OTP" name="otp">
<input required type="password" placeholder="Enter new password" name="password">
<input required type="password" placeholder="Confirm new password" name="cpassword">
<input type="submit" value="UPDATE" class="updatePassword">
</form>
</div>
</div>
</div>
</section>
<div class="bg-balls"></div>
<script>
let compressImage = document.querySelector('#image');
let qualityImage = document.createElement('img');
qualityImage.src = './images/signup.jpg';
qualityImage.onload = function() {
compressImage.src = this.src;
}
</script>
<script src="./javascript/update-password.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
</body>
</html>