-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangePassword.php
63 lines (50 loc) · 2.5 KB
/
ChangePassword.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
56
57
58
59
60
61
62
63
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class=' flex justify-center bg-slate-200'>
<div class="rounded-xl my-2 flex sm:mx-auto sm:w-full sm:max-w-sm lg:w-2/4 min-h-full flex-col justify-center px-6 py-4 lg:px-8 bg-slate-900">
<div class="sm:mx-auto sm:w-full sm:max-w-sm">
<h2 class="mt-1 text-center text-xl font-bold leading-9 tracking-tight text-white">Choose a new password</h2>
</div>
<div class="mt-2 sm:mx-auto sm:w-full sm:max-w-sm">
<form class="space-y-6" action="CodeChangePassword.php" method="POST">
<div>
<div>
<label for="password" class="block text-sm font-medium leading-6 text-white">Password</label>
</div>
<div class="mt-1">
<input id="password" name="password" type="password" autocomplete="current-password" required class="block w-full rounded-md border-0 p-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 sm:text-sm sm:leading-6">
</div>
</div>
<div>
<div>
<label for="password" class="block text-sm font-medium leading-6 text-white">Retype Password</label>
</div>
<div class="mt-1">
<input id="password" name="retype_password" type="password" autocomplete="current-password" required class="block w-full rounded-md border-0 p-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 sm:text-sm sm:leading-6">
</div>
<?php
session_start();
if(isset($_SESSION['status'])){
echo '<span class="text-red-700">' .$_SESSION['status']. '</span>';
unset($_SESSION['status']);
}
?>
</div>
<div>
<button type="submit" name="reset_pass_btn" class="flex w-full justify-center rounded-3xl bg-indigo-600 px-3 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600">Reset Password</button>
</div>
</form>
<p class="mt-4 text-center text-sm text-gray-500 mb-2">
Can remember your password?
<a href="LogIn.php" class="font-semibold leading-6 text-indigo-600 hover:text-indigo-500">Login Now</a>
</p>
</div>
</div>
</body>
</html>