-
Notifications
You must be signed in to change notification settings - Fork 976
/
Copy pathreset.html
117 lines (116 loc) · 5.11 KB
/
reset.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
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
______ __ __
/ ____/___ __ ______ / /_/ /_ __
/ / / __ \/ / / / __ \/ __/ / / / /
/ /___/ /_/ / /_/ / / / / /_/ / /_/ /
\____/\____/\__,_/_/ /_/\__/_/\__, /
http://count.ly/____/
-->
<html>
<head>
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<meta name="referrer" content="no-referrer">
<link href='../stylesheets/pre-login/main.css' rel='stylesheet' type='text/css'>
<link rel="icon" type="image/png" href="../<%- countlyFavicon %>">
<% if (themeFiles && themeFiles.css) { %>
<% for(var i=0, l=themeFiles.css.length; i<l; i++) {%>
<link href='<%= themeFiles.css[i]%>' rel='stylesheet' type='text/css'>
<% } %>
<% } %>
<title><%- countlyTitle %></title>
<script>window.countlyGlobal = window.countlyGlobal || {}; countlyGlobal["cdn"] = "<%- cdn %>../";</script>
<% if (typeof inject_template.css != 'undefined') { %>
<style><%- inject_template.css %></style>
<% } %>
</head>
<body>
<% if (message){ %>
<div id="message"></div>
<% } %>
<div id="top-container">
<% if (countlyPage){ %>
<a class="top-button" href="<%- countlyPage %>"><%- countlyTitle %></a>
<% } %>
<div class="top-button" id="select-lang">
<div id="active-lang">EN</div>
<div id="langs">
<div class="group">
<% for(var i=0, l=(languages.length/2); i<l; i++) {%>
<a data-language-code="<%=languages[i].code%>" class="item"><%=languages[i].name%></a>
<% } %>
</div>
<div class="group">
<% for(var i=(parseInt(languages.length/2) + 1), l=languages.length; i<l; i++) {%>
<a data-language-code="<%=languages[i].code%>" class="item"><%=languages[i].name%></a>
<% } %>
</div>
</div>
</div>
</div>
<div id="reset-form">
<div id="forgot-left">
<div id="forgot-logo"></div>
</div>
<div style="height: 20px; font-size: 15px; color: #A7A7A7; text-align: center; width: 400px; margin: 0 auto 30px; line-height: 21px;" data-localize="reset.explanation"></div>
<div id="create-account">
<form id="reset-password-form" method="POST" action="../reset">
<div>
<input type="password" name="password" placeholder="Password" data-localize="placeholder.password" autocomplete="<% if(security.autocomplete) {%>on<%} else { %>off<%}%>"/>
</div>
<div>
<input type="password" name="again" placeholder="Again" data-localize="placeholder.again" autocomplete="<% if(security.autocomplete) {%>on<%} else { %>off<%}%>"/>
</div>
<% if (typeof inject_template.form != "undefined") { %>
<%- inject_template.form %>
<% } %>
<div>
<input type="hidden" value="<%= prid %>" name="prid" />
<input type="hidden" value="<%= csrf %>" name="_csrf" />
<input type="hidden" value="en" name="lang" id="form-lang" />
<% if (newinvite) { %>
<input id="login-button" value="Reset my password" type="submit" data-localize="reset.buttonnew" style="margin-top: 0;"/>
<% } else { %>
<input id="login-button" value="Reset my password" type="submit" data-localize="reset.button" style="margin-top: 0;"/>
<% } %>
</div>
</form>
</div>
<% if (typeof inject_template.html != "undefined") { %>
<%- inject_template.html %>
<% } %>
</div>
<script language="javascript" type="text/javascript" src="../javascripts/dom/jquery/jquery.js"></script>
<script language="javascript" type="text/javascript" src="../javascripts/utils/prefixfree.min.js"></script>
<script language="javascript" type="text/javascript" src="../javascripts/utils/store+json2.min.js"></script>
<script language="javascript" type="text/javascript" src="../javascripts/utils/jquery.i18n.properties-min-1.0.9.js"></script>
<script language="javascript" type="text/javascript" src="../javascripts/utils/jquery.xss.js"></script>
<script language="javascript" type="text/javascript" src="../javascripts/pre-login.js"></script>
<script>
var countlyTitle = "<%- countlyTitle %>";
$(document).ready(function() {
<% if (message && message.length > 0){ %>
showMessage("<%= message %>", "<%= password_min %>");
<% } %>
if (jQuery.i18n.map["forgot.title"]) {
document.title = countlyTitle + " | " + jQuery.i18n.map["forgot.title"];
}
});
$(document).bind('clyLangChange', function() {
if (jQuery.i18n.map["forgot.title"]) {
document.title = countlyTitle + " | " + jQuery.i18n.map["forgot.title"];
}
});
</script>
<% if (typeof inject_template.js != 'undefined') { %>
<script><%- inject_template.js %></script>
<% } %>
<% if (themeFiles && themeFiles.js) { %>
<% for(var i=0, l=themeFiles.js.length; i<l; i++) {%>
<script language="javascript" type="text/javascript" src="<%=themeFiles.js[i]%>"></script>
<% } %>
<% } %>
</body>
</html>