-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpasswd.php
35 lines (29 loc) · 943 Bytes
/
passwd.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
<?php require_once("app.php");
$auth = new Authenticator();
$auth->requireAuthenticatedUser();
echo($template["header"]);
?>
<div class="row"><div class="col-sm-2"></div><div class="col-sm-8">
<div class="row">
<div>
<h1>Change your password</h1>
<p>Passwords are case-sensitive.</p>
</div>
</div>
<!--
<div class="row">
<div>
<p>Passwords are case-sensitive.</p>
</div>
</div>
-->
<form class="form-horizontal" action="passwd_change.php" method="POST">
<?php
TemplateEngine::generateFormInput("old", "password", "Your current password", true, "*****************************");
TemplateEngine::generateFormInput("new", "password", "Your desired password", true, "*****************************");
TemplateEngine::generateFormInput("new_confirm", "password", "Again", true, "*****************************");
TemplateEngine::generateFormSubmit("Do it");
?>
</form>
</div>
<?php echo($template["footer"]); ?>