-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.html
64 lines (53 loc) · 2.17 KB
/
settings.html
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
<!DOCTYPE html>
<html >
<head>
<meta charset="UTF-8"></meta>
<title>Change password</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="/static/passvalidation.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="/static/csssettings.css">
<script type="text/javascript">
var result = 0;
var request;
window.addEventListener("load", function() {
var el = document.getElementById("newPass");
el.addEventListener('input', function() {
checkPass("newPass","submitButton");
}, false);
// console.info(document.getElementById('secretIn').value);
// b = document.getElementById("submitButton");
// b.addEventListener("click", checkToken, false);
}, false);
</script>
</head>
<body>
<div class="login">
<div class="login-screen">
<div class="app-title">
<h1>Change password:</h1>
</div>
<div class="login-form">
<form action='/pijaginw/safeyourself/settings' method='POST'>
<p>change your password, {{ username }}</p>
<div class="control-group">
<label class="login-field-icon fui-user" for="oldPass">old password:</label>
<input type="password" class="login-field" value="" placeholder="old" id="oldPass" name="oldPass">
</div>
<div class="control-group">
<label class="login-field-icon fui-lock" for="login-pass">new password:</label>
<p id="hint" class="hint"></p>
<input type="password" class="login-field" value="" placeholder="new" id="newPass" name="newPass">
</div>
<div class="control-group">
<label class="login-field-icon fui-lock" for="newPass2">repeat:</label>
<input type="password" class="login-field" value="" placeholder="new" id="newPass2" name="newPass2">
</div>
<input type='submit' value='CHANGE' id='submitButton'>
<input type='hidden' id="secretIn" name="secretIn" value="{{ token }}">
</form>
<p><a href="/pijaginw/safeyourself/logout">{{ username }} is not you?</a></p>
</div>
</div>
</div>
</body>
</html>