📄 mustmodifypasswordstep2.jsp
字号:
<%@ page contentType="text/html;charset=gb2312" %>
<%@ include file="incoming/Common.jsp"%>
<%
int IsSucceed=0;
%>
<%
try
{
String username = request.getParameter("username");
String oldpassword = request.getParameter("oldpassword");
String newpassword = request.getParameter("newpassword");
if(!User.ChkLogin(username,oldpassword))
{
response.sendRedirect("MustModifyPasswordStep1.jsp?loginmsg=passwordwrong&username="+username);
return;
}
else
{
IsSucceed=User.ModifyPassword(username,newpassword);
}
}
catch(Exception e){
out.println("error:"+e.getMessage());
}
%>
<HTML>
<HEAD>
<TITLE><%=title%></TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<link href="css/style.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY>
<p> </p>
<p> </p>
<table width="382" height="197" border="2" align="center" cellpadding="2" cellspacing="2" bordercolor="#878080" background="images/login_bg.jpg">
<tr>
<td width="368" height="189"><div align="center">
<font class="title1">
<%
if(IsSucceed.equals("1"))
out.println("修改密码成功!");
%>
</font> </div>
<p align="center">
<input name="back" type="button" id="back2" value="返回" onClick="javascript:history.go(-2)">
</p></td>
</tr>
</table>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -