-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresetPassword.php
More file actions
91 lines (82 loc) · 3.31 KB
/
resetPassword.php
File metadata and controls
91 lines (82 loc) · 3.31 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php
include_once 'includes/db_connect.php';
include_once 'includes/functions.php';
sec_session_start();
?>
<!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">
<title>REP Xword index</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/jumbotron.css" rel="stylesheet">
<!-- Bootstrap core JavaScript-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="css/js/bootstrap.min.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="css/js/ie10-viewport-bug-workaround.js"></script>
<!-- Hashing function -->
<script src="js/sha512.js"></script>
<script src="js/forms1.js"></script>
<script>
$(function () {
$('input').keypress(function (e) {
var key = e.which;
if (key == 13) // the enter key code
{
$('#ResetPasswordForm').click();
return false;
}
});
});
</script>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="./index.php" style="color:white;">REP Crossword Index</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<div class="navbar-right navbar-form" style="color:white;">
</div><!--/.navbar-collapse -->
</div>
</nav>
<div class="jumbotron">
<div class="container">
<div class="col-md-6 col-md-offset-3">
<?php echo '
<form method="POST" name="passwordChange_form" action="./includes/resetPass.php">
<div class="form-group">
<label for="email">Email address</label>
<input type="email" name="email" class="form-control" id="email" aria-describedby="emailHelp" placeholder="Enter email" autofocus>
<small id="emailHelp" class="form-text text-muted">We will never share your email with anyone else.</small>
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" class="form-control" id="password" placeholder="Password">
</div>
<div class="form-group">
<label for="confirmpwd">Confirm Password</label>
<input type="password" class="form-control" id="confirmpwd" placeholder="Confirm Password">
</div>
<input type="hidden" name="resetPassword" value="reset" />
<input type="hidden" name="q" value="';
if (isset($_GET["q"])) {
echo $_GET["q"];
}
echo '" /><input type="button" name="ResetPasswordForm" id="ResetPasswordForm" value="Change password" class="btn btn-primary" onclick="return passwordformhash(this.form, this.form.password, this.form.confirmpwd);" />
</form>';
?>
</div>
</div>
</div>
<div class="container">
<div class="row">
<hr><p>© 2016 Product of REP</p>
</div>
</div>
</body>
</html>