resetPwd.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!DOCTYPE html>
  2. <html lang="zh" xmlns:th="http://www.thymeleaf.org" >
  3. <head>
  4. <th:block th:include="include :: header('修改密码')" />
  5. </head>
  6. <body class="white-bg">
  7. <div class="wrapper wrapper-content animated fadeInRight ibox-content">
  8. <form class="form-horizontal m" id="form-user-resetPwd">
  9. <input name="userId" type="hidden" th:value="${user.userId}" />
  10. <div class="form-group">
  11. <label class="col-sm-3 control-label ">登录名称:</label>
  12. <div class="col-sm-8">
  13. <input class="form-control" type="text" readonly="true" name="loginName" th:value="${user.loginName}"/>
  14. </div>
  15. </div>
  16. <div class="form-group">
  17. <label class="col-sm-3 control-label">输入密码:</label>
  18. <div class="col-sm-8">
  19. <input class="form-control" type="password" name="password" id="password" th:value="${@config.getKey('sys.user.initPassword')}">
  20. </div>
  21. </div>
  22. </form>
  23. </div>
  24. <th:block th:include="include :: footer" />
  25. <script type="text/javascript">
  26. $("#form-user-resetPwd").validate({
  27. rules:{
  28. password:{
  29. required:true,
  30. minlength: 5,
  31. maxlength: 20
  32. },
  33. },
  34. focusCleanup: true
  35. });
  36. function submitHandler() {
  37. if ($.validate.form()) {
  38. $.operate.save(ctx + "system/user/resetPwd", $('#form-user-resetPwd').serialize());
  39. }
  40. }
  41. </script>
  42. </body>
  43. </html>