<!--#include file="conn.asp"--><%seo_title="Find Your Password-"&sitename%>
<!--#include file="IncAsp/WrzcNet_top.asp"-->
<!-- #include file="IncAsp/WrzcNet_md5.asp" -->
<div align="center">
<table cellpadding="0" cellspacing="0" class="all_t1">
<tr><td class="all_l_td" valign="top">
<!--#include file="IncAsp/WrzcNet_log.asp"--><div class="d5"></div>
</td>
<td valign="top" class="all_c_td">

<table border="0" cellpadding="0" cellspacing="0" width="99%">
<tr><td height="30" class="sort" colspan="3">&nbsp;<IMG src="Skin/<%=WrzcNet_skin%>/home.gif" border=0 align="absmiddle">   
	<a href="index.asp">Home</a> >>&nbsp;Find Your Password</td></tr></table>



<%user_name=DelStr(request("user_name"))
question=DelStr(request("question"))
answer=DelStr(request("answer"))
pass1=DelStr(md5(request("pass1")))
pass2=DelStr(md5(request("pass2")))
if request("action")="repass1" then%>

<table border="0" cellpadding="0" cellspacing="0" width="99%">
<%
if user_name="" then
response.write "<tr><td colspan=3 align=center height=100>UserName not Found, <a href=""repass.asp""><font color=#ff0000>Back</font></a> !</td></tr>"
else
set rs=server.createobject("adodb.recordset")
sql="select * from WrzcNet_user where username='"&user_name&"'"
rs.open sql,conn,1,1
if rs.eof then
response.write "<tr><td colspan=3 align=center height=100>UserName not Found, <a  href=""repass.asp""><font color=#ff0000>Back</font></a> !</td></tr>"
else
if rs("question")="" or rs("answer")="" then
response.write "<tr><td colspan=3 align=center height=100>Sorry,You had no question of Password,<a  href=""repass.asp""><font color=#ff0000>Back</font></a> !</td></tr>"
else
%>

<tr> 
    <td colspan="3" align="center" height="30">Step 2: Answer Your Question of Password</td>
 </tr>
   	<form method="POST" name="form" action="repass.asp?action=repass2"><tr> 
    <td align="right" height="30" width="200">UserName:</td>
    <td height="30" width="25"></td>
    <td height="30" width="400"><%=rs("username")%><input name="user_name" type="hidden" value="<%=rs("username")%>"></td>
   </tr>
   	<tr> 
    <td align="right" height="30" width="200">Question of Password:</td>
    <td height="30" width="25"></td>
    <td height="30" width="400"><%=rs("question")%><input name="question" type="hidden" value="<%=rs("question")%>"></td>
   </tr>
   	<tr>
    <td align="right" height="30" width="200">Answerof Password:</td>
    <td height="30" width="25"></td>
    <td height="30" width="400"><input name="answer" type="text" class=input size="20"></td>
    </tr>
   	<tr><td align="center" colspan="3" height="30"><input type=submit value=Next name="submit1"></td></tr>
   </form>
<%end if
end if
rs.close
set rs=nothing
end if
%>
</table>

<%elseif request("action")="repass2" then%>

<table border="0" cellpadding="0" cellspacing="0" width="99%">
<%set rs=server.createobject("adodb.recordset")
sql="select * from WrzcNet_user where username='"&user_name&"' and question='"&question&"' and answer='"&answer&"'"
rs.open sql,conn,1,1
if rs.eof then
response.write "<tr><td colspan=3 align=center height=100>Please confirm your Answer,<a  href=""repass.asp""><font color=#ff0000>Back</font></a> !</td></tr>"
else%>
 <form method="POST" name="form2" action="repass.asp?action=repass3"><tr> 
    <td colspan="3" align="center" height="30">Step 3: Reset Your Password</td></tr>
   	<tr><td width="200" align="right" height="30">UserName:</td>
    <td width="25" height="30"></td>
    <td width="400" height="30"><%=rs("username")%><input name="user_name" type="hidden" value="<%=rs("username")%>"></td></tr>
   	<tr><td width="200" align="right" height="30">New Password:</td><td width="25" height="30"></td><td width="400" height="30">
		<input name="pass1" type="password" class=input size="20"></td></tr>
   	<tr><td width="200" align="right" height="30">Confirm New Password:</td>
    <td width="25" height="30"></td>
    <td width="400" height="30">
	<input name="pass2" type="password" class=input size="20"></td></tr>
   	<tr><td align="center" colspan="3" height="30"><input type=submit value=Next name="submit1"></td></tr>
   </form>
<%end if
rs.close
set rs=nothing
%></table>
<%elseif request("action")="repass3" then%>

<table border="0" cellpadding="0" cellspacing="0" width="99%">
<%set rs=server.createobject("adodb.recordset")	
sql="select * from WrzcNet_user where username='"&user_name&"'"
rs.open sql,conn,1,3
if rs.eof then
response.write "<tr><td colspan=3 align=center height=100>UserName Not Found,<a  href=""repass.asp""><font color=#ff0000>Back</font></a> !</td></tr>"
else
if pass1<>pass2 then
response.write "<tr><td colspan=3 align=center height=100>Verify password is different from the previous one,<a  href=""repass.asp""><font color=#ff0000>Back</font></a> !</td></tr>"
else
rs("userpass")=pass1
rs.update
response.write "<tr><td colspan=3 align=center height=100>Success,<a href=index.asp><font color=red>Back to home</font></a></td></tr>"
end if
end if
rs.close
set rs=nothing%>
</table>
<%else%>

<table border="0" cellpadding="0" cellspacing="0" width="99%">
 <form method="POST" name="form1" action="repass.asp?action=repass1">
   <tr><td height="60" colspan="3" align="center" width="100%">Step 1: Enter Your Username</td></tr>
   	<tr><td align="right" height="30" width="230">UserName:</td>
    <td align="center" height="30" width="165"><input name="user_name" type="text" class=input size="16"></td>
    <td height="30" width="230"><input type=submit value=Next name="submit"></td></tr>
   	<tr><td align="center" height="60" colspan="3" width="100%"><a href="mailto:<%=mail%>"></a></td></tr>
</form></table>
<%end if%>

</td></tr></table></div><!--#include file="IncAsp/WrzcNet_copy.asp"-->