passwordReset.jsp
资源名称:bangong.rar [点击查看]
上传用户:dlqqsh
上传日期:2021-11-13
资源大小:7840k
文件大小:1k
源码类别:
OA系统
开发平台:
Java
- <%@ page contentType="text/html; charset=GBK" import="officeol.mc.tools.*" %>
- <%request.setCharacterEncoding("GBK"); %>
- <html>
- <head>
- <title>
- 天津市河东区经济贸易委员会内部办公网
- </title>
- </head>
- <body bgcolor="#ffffff">
- <h4>
- 用户密码重置
- </h4>
- <%
- DBConn dbc = new DBConn();
- Tool tl = new Tool();
- String un = request.getParameter("un");
- String pwd = tl.hash("111111");
- String sql = "update [user] set password='"+pwd+"' where unmd5='"+un+"'";
- dbc.executeUpdate(sql);
- String[][] sun = dbc.getArray("select username from [user] where unmd5='"+un+"'");
- session.setAttribute("msg1","用户"+sun[0][0]+"密码重置为 111111 ");
- response.sendRedirect("userset.jsp");
- %>
- </body>
- </html>