-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprofile.php
80 lines (67 loc) · 3.37 KB
/
profile.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
include('header.php');
?>
<!-- Begin Page Content -->
<div class="container-fluid">
<!-- Page Heading -->
<h1 class="h3 mb-4 text-gray-800"><?php echo $_SESSION['fullname'] ?></h1>
<div class="row">
<div class="col-lg-6">
<div class="card shadow mb-4">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-primary">Change Password</h6>
</div>
<div class="card-body">
<form class="user" autocomplete="off" method="POST" action="functions/people/users/change_password.php">
<!-- <div class="form-group">
<input type="text" class="form-control form-control-user" name="username" placeholder="username" required>
</div> -->
<div class="form-group">
<input type="password" class="form-control form-control-user" name="oldpassword" placeholder="Old Password" required>
</div>
<div class="form-group">
<input type="password" class="form-control form-control-user" id="newpasskey" name="newpassword" pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}" title="Must contain at least one number and one uppercase and lowercase letter, and at least 8 or more characters" placeholder="New Password" required>
</div>
<div class="form-group">
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" onclick="show()">
Show Password
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<script>
function show() {
var x = document.getElementById("newpasskey");
if (x.type === "password") {
x.type = "text";
} else {
x.type = "password";
}
}
</script>
</div>
<button type="reset" class="btn btn-danger btn-icon-split">
<span class="icon text-white-50">
<i class="fas fa-flag"></i>
</span>
<span class="text">Reset</span>
</button>
<button type="submit" class="btn btn-success btn-icon-split">
<span class="icon text-white-50">
<i class="fas fa-check"></i>
</span>
<span class="text">Submit</span>
</button>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- /.container-fluid -->
<?php
include('footer.php');
?>