<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" import="java.util.*" import="com.tootsville.user.*" import="org.starhope.appius.mb.*" import="org.starhope.appius.mb.fields.*" import="org.starhope.appius.user.*" import="com.tootsville.WebUtil" import="org.starhope.util.types.*" %><% MBSession sess = MBSession.get(request); /** * Person object to be cast as a parent or a person to make an association between * what info is entered and the actual account. */ AbstractPerson fpPerson=null; String recoverPassword = ""; String account = request.getParameter("account"); if (null != account) { if (0 <= account.indexOf('@')) { fpPerson = Nomenclator.getParentByMail(account); if (null == fpPerson) { sess.addErrorToast ("That eMail address is not a Tootsville™ parent account. You can register your free parent account now, if you like."); } } else { AbstractUser u = Nomenclator.getUserByLogin(account); if (u instanceof AbstractPerson) { fpPerson = (AbstractPerson) u; } else { sess.addErrorToast ("That is not your account. Please check your spelling and try again, or register a new account for free."); } } if (null!=fpPerson){ recoverPassword = fpPerson.getForgotPasswordQuestion(); } } if (sess.hasErrors()) { response.sendRedirect("/membership/forgotPassword"); } %>

Did you forget your password?


<% if (null != fpPerson) { %>
Forgot your password?

Toots® (Players): Please enter your user name and click ‘Submit’

Parents: Please enter your e-mail address and click ‘Submit’

User Name or
E-mail:
<% } else { %>

Please answer your Forgotten Password Recovery Question, and then click 'Submit'

<% } %>
User Name or
E-mail:
<%= recoverPassword %>