-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchange_password.php
More file actions
33 lines (30 loc) · 862 Bytes
/
change_password.php
File metadata and controls
33 lines (30 loc) · 862 Bytes
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
<?php
require('config/config.php');
require('session.php');
require('handlers/change_password_handler.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Change Password</title>
</head>
<body>
<?php
if ($errors) {
echo '<div class="error"><ul>';
foreach ($errors as $value) {
echo "<li>" . $value . "</li>";
}
echo '</ul></div>';
}
?>
<form method="post">
<input type="password" name="passOld" placeholder="Old Password">
<input type="password" name="passNew1" placeholder="New Password">
<input type="password" name="passNew2" placeholder="Confirm New Password">
<button type="submit" name="change">Change Password</button>
</form>
</body>
</html>