- Fix forgot password email

- Rewrite forgot password to use the new MVC model.
- Show a dialog when the password has been sent.
This commit is contained in:
Paulo Gustavo Veiga
2012-06-16 15:59:59 -03:00
parent 8a638e8de6
commit 7d6b82c626
25 changed files with 532 additions and 569 deletions

View File

@@ -1,13 +0,0 @@
<%@ include file="/jsp/init.jsp" %>
<h1>
<spring:message code="INVALID_EMAIL_ERROR"/>
</h1>
<h2>The email is not register or you account is not active yet.</h2>
<p>If the problem persist please send us an email to <a href="mailto:support@wisemapping.com">support@wisemapping.com </a></p>
</br>
<p>We are working to add more features in the future. Stay tuned !</p>
</br>
<p>Best Regards,</p>
<p>WiseMapping Team.</p>

View File

@@ -1,10 +1,6 @@
<%@ page import="org.apache.log4j.Logger" %>
<%@ page autoFlush="true" buffer="none" %>
<%@ include file="/jsp/init.jsp" %>
<%!
final Logger logger = Logger.getLogger("com.wisemapping");
%>
<div style="position:relative;">
<div id="prompt">
<!-- if IE without GCF, prompt goes here -->

View File

@@ -15,7 +15,7 @@
<div class="loginNews">
<h1>What is New: </h1>
<ul>
<li>Links Between Nodes</li>
<li>Complerly new UI</li>
<li>FreeMind 0.9 Update</li>
<li>Improved HTML 5.0 Support</li>
<li>Firefox 12 officially supported</li>

View File

@@ -1,33 +1,39 @@
<%@ include file="/jsp/init.jsp" %>
<div>
<div class="fform">
<h1>
<spring:message code="FORGOT_PASSWORD"/>
</h1>
<p><spring:message code="FORGOT_PASSWORD_MESSAGE"/></p>
<form:form method="post" commandName="forgotPassword">
<fieldset>
<label for="email"><spring:message code="EMAIL"/></label>
<form:input path="email" id="email" tabindex="1" type="email" required="required"/>
<form:errors path="email" cssClass="errorMsg"/>
<input type="submit" value="<spring:message code="SUBMIT"/>" class="btn btn-primary"/>
<input type="button" value="<spring:message code="CANCEL"/>" class="btn"
onclick="window.location='<c:url value="c/maps/"/>'"/>
</fieldset>
</form:form>
</div>
</div>
<div id="register">
<b>
<spring:message code="NOT_READY_A_USER"/>
</b>
<spring:message code="NOT_READY_A_USER_MESSAGE"/>
<a href="userRegistration">
<spring:message code="JOIN_NOW"/>
</a>
<%@ include file="/jsp/init.jsp" %>
<script type="text/javascript" language="javascript">
$(function() {
$('.btn-primary').click(function() {
$(this).button("loading");
});
});
</script>
<div>
<div class="fform">
<h1>
<spring:message code="FORGOT_PASSWORD"/>
</h1>
<p><spring:message code="FORGOT_PASSWORD_MESSAGE"/></p>
<form:form method="post" commandName="resetPassword">
<fieldset>
<label for="email"><spring:message code="EMAIL"/></label>
<input id="email" type="email" required="required" name="email"/>
<input type="submit" value="<spring:message code="SUBMIT"/>" class="btn btn-primary" data-loading-text="Saving ..."/>
<input type="button" value="<spring:message code="CANCEL"/>" class="btn"
onclick="window.location='<c:url value="c/maps/"/>'"/>
</fieldset>
</form:form>
</div>
</div>
<div id="register">
<b>
<spring:message code="NOT_READY_A_USER"/>
</b>
<spring:message code="NOT_READY_A_USER_MESSAGE"/>
<a href="c/userRegistration">
<spring:message code="JOIN_NOW"/>
</a>
</div>

View File

@@ -0,0 +1,6 @@
<%@ include file="/jsp/init.jsp" %>
<h2>The email is not register or you account is not active yet.</h2>
<p>If the problem persist please send us an email to <a
href="mailto:support@wisemapping.com">support@wisemapping.com </a></p>

View File

@@ -0,0 +1,12 @@
<%@ include file="/jsp/init.jsp" %>
<h2>
Your temporal password has been sent
</h2>
<p>
We've sent you an email that will allow you to reset your password quickly and easily. Please check your email now.
</p>
<p>If you have any problem receiving the email, contact us to <a
href="mailto:support@wisemapping.com">support@wisemapping.com </a></p>