-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchange_password.php
More file actions
73 lines (65 loc) · 3.22 KB
/
change_password.php
File metadata and controls
73 lines (65 loc) · 3.22 KB
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
64
65
66
67
68
69
70
71
72
73
<?php
require 'utilities/common.php';
if(!isset($_SESSION['email']))
{
header("location: index.php");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Control Budget | Change Password</title>
<script src="https://kit.fontawesome.com/d5d0f39f2f.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<?php
include 'utilities/navbar.php';
?>
<!-- Login Form -->
<section id="login">
<div class="container">
<div class="row">
<div class="col-md-6 mx-auto">
<div class="card m-3">
<div class="card-header text-center" style="background: #c5d5c5">
<h4>Change Password</h4>
</div>
<div class="card-body py-4">
<form method="POST" action="utilities/change_pwd_script.php">
<div class="form-group">
<label for="password">Password</label>
<input type="password" name="password" class="form-control" placeholder="Old password" required>
</div>
<div class="form-group">
<label for="password">New Password</label>
<input type="password" name = "new_pwd" class="form-control" placeholder="New password (Min. 6 characters)" required>
</div>
<div class="form-group">
<label for="password">Confirm New Password</label>
<input type="password" name="again_pwd" class="form-control" placeholder="Re-type New password" required>
</div>
<input type="submit" value="Change" class="btn btn-primary btn-block">
</form>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Footer -->
<?php
require 'utilities/footer.php';
?>
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
<script>
// Get the current year for the copyright
$('#year').text(new Date().getFullYear());
</script>
</body>
</html>