passwordReset.jsp~14~
上传用户:dlqqsh
上传日期:2021-11-13
资源大小:7840k
文件大小:1k
源码类别:

OA系统

开发平台:

Java

  1. <%@ page contentType="text/html; charset=GBK" import="officeol.mc.tools.*" %>
  2. <%request.setCharacterEncoding("GBK"); %>
  3. <html>
  4. <head>
  5. <title>
  6. 天津市经贸委在线办公
  7. </title>
  8. </head>
  9. <body bgcolor="#ffffff">
  10. <h1>
  11. 用户密码重置
  12. </h1>
  13. <%
  14. DBConn dbc = new DBConn();
  15. Tool tl = new Tool();
  16. String un = request.getParameter("un");
  17. String pwd = tl.hash("111111");
  18. String sql = "update [user] set password='"+pwd+"' where unmd5='"+un+"'";
  19. dbc.executeUpdate(sql);
  20. String[][] sun = dbc.getArray("select username from [user] where unmd5='"+un+"'");
  21. session.setAttribute("msg1","用户"+sun[0][0]+"密码重置为 111111 ");
  22. response.sendRedirect("userset.jsp");
  23. %>
  24. </body>
  25. </html>