1<%@ page contentType="text/html;charset=UTF-8" language="java" %>
2<%@ page import="org.madsonic.util.STokenUtils" %>
3<%
4  String siteKey = "6Lfffg0TAAAAAKFOx9mpGgm8UlIjBbzYI3klZhSh";
5  String siteSecret = "6Lfffg0TAAAAAPEg8i3OBsVn-zbcHCPfaW7A1g-7";
6%>
7
8<html>
9<head>
10    <%@ include file="head.jsp" %>
11    <script src="https://www.google.com/recaptcha/api.js"></script>
12    <style>
13    input {
14        color: #222 !important;
15        border: 1px solid #ddd;
16        background-image: url("../icons/madsonic_black/bg-white.jpg");
17    }
18
19    div#poweredby {
20        position: absolute;
21        bottom: 0;
22        right: 0;
23        display: block;
24        padding: 5px;
25    }
26</style>
27
28</head>
29<body class="mainframe bgcolor1 splash" onload="document.getElementById('usernameOrEmail').focus()">
30
31<form action="recover.view" method="POST">
32<center>
33    <div class="bgcolor2 loginsplash" style="border:1px solid black; padding:20px 50px 20px 50px; margin-top:200px;max-width:50em;">
34
35        <div style="margin-left: auto; margin-right: auto; max-width:50em">
36
37            <h1><fmt:message key="recover.title"/></h1>
38
39            <p style="color:#222; padding-top: 1em; padding-bottom: 0.5em"><fmt:message key="recover.text"/></p>
40
41            <c:if test="${empty model.sentTo}">
42                <input type="text" id="usernameOrEmail" name="usernameOrEmail" style="width:18em;margin-right: 1em">
43                <input name="submit" type="submit" value="<fmt:message key="recover.send"/>">
44            </c:if>
45
46            <c:if test="${not empty model.captcha}">
47                <p style="padding-top: 1em">
48                <div class="g-recaptcha" style="padding-left:18px" data-sitekey=<%=siteKey%> data-stoken=<%=STokenUtils.createSToken(siteSecret)%>></div>
49                </p>
50            </c:if>
51
52            <c:if test="${not empty model.sentTo}">
53                <p style="padding-top: 1em"><fmt:message key="recover.success"><fmt:param value="${model.sentTo}"/></fmt:message></p>
54            </c:if>
55
56            <c:if test="${not empty model.error}">
57                <p style="padding-top: 1em" class="warning"><fmt:message key="${model.error}"/></p>
58            </c:if>
59
60            <div class="back" style="padding-left: 60px;margin-top: 1.5em; background-position: center center;"><a href="login.view"><fmt:message key="common.back"/></a></div>
61
62        </div>
63    </div>
64	</center>
65</form>
66<div id="poweredby">
67<a href="http://www.madsonic.org">powered by Madsonic</a></div>
68</div>
69</body>
70</html>
71