-
Notifications
You must be signed in to change notification settings - Fork 0
/
password-reset.php
93 lines (92 loc) · 4.02 KB
/
password-reset.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
81
82
83
84
85
86
87
88
89
90
91
92
93
<?php
include('password_reset_config.php');
?>
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta http-equiv="Content-Language" content="en"/>
<meta name="theme-color" content="#817729">
<meta name="msapplication-TileColor" content="#817729">
<meta name="msapplication-TileImage" content="/mstile-144x144.png">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="Agridata">
<meta name="mobile-web-app-capable" content="yes">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="application-name" content="Agridata">
<link rel="apple-touch-icon" sizes="180x180" href="./apple-touch-icon-precomposed.png">
<link rel="icon" type="image/x-icon" href="./favicon.ico">
<link rel="manifest" href="./site.webmanifest">
<link rel="mask-icon" href="./safari-pinned-tab.svg" color="#5bbad5">
<title>Verde - Agricultural Extension and Analytics</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300i,400,400i,500,500i,600,600i,700,700i&subset=latin-ext">
<script charset="utf-8" src="./assets/js/pace.min.js"></script>
<script src="./assets/js/require.min.js"></script>
<script>
setTimeout(hideURLbar, 0);
function hideURLbar(){
window.scrollTo(0,1);
}
requirejs.config({
baseUrl: '.'
});
</script>
<!-- Dashboard Core -->
<link href="./assets/css/dashboard.css" rel="stylesheet" />
<link href="./assets/css/pace.css" rel="stylesheet" />
<script charset="utf-8" async src="./assets/js/dashboard.js"></script>
</head>
<body class="">
<div class="page">
<div class="page-single">
<div class="container">
<div class="row">
<div class="col col-login mx-auto">
<div class="text-center mb-6">
<a href="./">
<img src="./assets/images/logo.png" class="h-6" alt="[VERDE]">
</a>
</div>
<?php echo alert(); ?>
<form class="card" action="./password-reset.php<?php echo isset($_GET['pass_rc']) ? '?pass_rc='.e($_GET['pass_rc']) : null ?>" method="post">
<div class="card-body p-6">
<div class="card-title text-center">Create New Password</div>
<div class="form-group">
<label class="form-label">Password</label>
<input type="password" class="form-control" name="passw_1" placeholder="Password" required>
</div>
<div class="form-group">
<label class="form-label">Confirm Password</label>
<input type="password" class="form-control" name="passw_2" placeholder="Confirm password" required>
</div>
<?php echo display_error(); ?>
<div class="form-footer">
<button type="submit" class="btn btn-primary btn-block" name="reset_password">Reset password</button>
</div>
</div>
</form>
<div class="text-center text-muted">
Forget it, <a href="./login.php">take me back</a> to the Login page.
</div>
</div>
</div>
</div>
</div>
</div>
<script>
require(['jquery'], function ($) {
$(function() {
var form = $('form.card');
form.submit(function (e) {
$("button[type=submit]").addClass("disabled");
})
})
})
</script>
</body>
</html>