<%@ page import="sitoca.Registration, sitoca.SendMailBean, java.text.*,java.util.*,java.beans.*"%> <%try{%>
 

Retrieve Lost Password
 
<% if(!(request.getParameter("retrieve_password") == null)) { String publicid, email, password; publicid = email = password = ""; if(request.getParameter("publicid") == null){publicid = "";}else{publicid = request.getParameter("publicid");} if(request.getParameter("email") == null){email = "";}else{email = request.getParameter("email");} if((publicid.length() == 0) && (email.length() == 0)) { out.write("Error : You must fill in either the Login ID and/or the email address used to register."); } else { Vector vResult = Registration.RetrievePassword(publicid, email); out.write("If the given Login ID and/or Email address is found in our database, you will recieve an email from us citing your Password shortly. If you are unable to retrieve your Password, please Contact Us and we will do our utmost to help."); if (((vResult.elementAt(2)).toString()).length() > 0) { publicid = ((vResult.elementAt(0)).toString()); email = ((vResult.elementAt(1)).toString()); password = ((vResult.elementAt(2)).toString()); SendMailBean mail = new SendMailBean(); mail.setHost("massar.lunarpages.com"); mail.setUserName("register@sitoca.com"); mail.setPassword("r1e2g3i4ster"); mail.setAuthenticate(true); mail.setFrom("Webmaster@sitoca.com"); mail.addTo(email); mail.setSubject("Sitoca Password Retrieval"); mail.setBody("This is a requested email from Sitoca website. If you had not requested for this information, please contact us immediately at webmaster@sitoca.com and disregard the information given within. \nOtherwise, this is the information requested.\n\nLogin ID : " + publicid + "\nPassword : " + password); mail.setHTML(false); mail.send(); } } } %>
 
Please enter your Login ID and/or Email Address provided during Registration, you will recieve an email with your password if the given Login ID and/or Email Address is found.
 
Login ID
Email Address
   
 
<%}catch(Exception e){%><%}%>