汇联通执法队后台管理系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <!DOCTYPE html>
  2. <%@ page contentType="text/html;charset=utf-8"%>
  3. <%@ include file="/WEB-INF/jsp/include.jsp"%>
  4. <html>
  5. <head>
  6. <meta http-equiv="expires" content="0" />
  7. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  8. <link href="${rootUrl }plugins/password-indicator/css/password-indicator.css" rel="stylesheet" />
  9. <script src="${rootUrl }plugins/password-indicator/js/password-indicator.js" type="text/javascript"></script>
  10. <script src="${rootUrl }plugins/encrypt/sha-512.js"></script>
  11. <script type="text/javascript">
  12. $(function(){
  13. $("#passwd1").passwordStrength();
  14. $('#modPwSubmit').click(function(){
  15. //$("#modPwForm").trigger("submit");
  16. if(!$("#passwordStrengthDiv").is(".is100")){
  17. alert("新密码的复杂强度不够");
  18. return false;
  19. }
  20. $("#oldPasswd").val(hex_sha512($("#oldPasswd1").val()));
  21. $("#passwd").val(hex_sha512($("#passwd1").val()));
  22. $("#confirm_pw").val(hex_sha512($("#confirm_pw1").val()));
  23. $("#modPwForm").ajaxSubmit(function submitSuccess(resText){
  24. if(resText.success){
  25. $.Taiji.showNote(resText.msg);
  26. $().hideModal();
  27. }
  28. else{
  29. alert("修改失败,错误信息:"+resText.msg);
  30. }
  31. });
  32. });
  33. });
  34. </script>
  35. </head>
  36. <body>
  37. <div class="modal-header">
  38. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
  39. <h4 class="modal-title">修改密码</h4>
  40. </div>
  41. <div class="modal-body">
  42. <form:form modelAttribute="passwdModel" id="modPwForm" name="modPwForm" cssClass="form-horizontal" action="${rootUrl }app/modPasswd" method="post">
  43. <div class="form-group">
  44. <label class="col-sm-2 control-label">原始密码</label>
  45. <div class="col-sm-10">
  46. <form:hidden path="oldPasswd"/>
  47. <input type="password" id="oldPasswd1" class="form-control passwd-control" placeholder="密码必填"/>
  48. </div>
  49. </div>
  50. <div class="form-group">
  51. <label class="col-sm-2 control-label">新密码</label>
  52. <div class="col-sm-10">
  53. <form:hidden path="passwd"/>
  54. <input type="password" id="passwd1" class="form-control passwd-control" placeholder="密码必填"/>
  55. <div id="passwordStrengthDiv" class="is0 m-t-5"></div>
  56. <span class="help-block">密码长度8-12之间,包含数字、字母(区分大小写)、特殊符号</span>
  57. </div>
  58. </div>
  59. <div class="form-group">
  60. <label class="col-sm-2 control-label">确认密码</label>
  61. <div class="col-sm-10">
  62. <form:hidden path="confirm_pw"/>
  63. <input id="confirm_pw1" type="password" class="form-control passwd-control" placeholder="确认必填"/>
  64. </div>
  65. </div>
  66. </form:form>
  67. </div>
  68. <div class="modal-footer">
  69. <a href="#" class="btn btn-sm btn-white" data-dismiss="modal">关闭</a>
  70. <a href="#" class="btn btn-sm btn-success" id="modPwSubmit">保存</a>
  71. </div>
  72. </body>
  73. </html>