From fe4ed98b4ca70931e4e25d05fcca56a8134102c5 Mon Sep 17 00:00:00 2001 From: 李宇 <986321569@qq.com> Date: 星期五, 18 十二月 2020 10:34:10 +0800 Subject: [PATCH] 修改强制改密码 --- src/main/webapp/index.xhtml | 24 ++++++++---------------- 1 files changed, 8 insertions(+), 16 deletions(-) diff --git a/src/main/webapp/index.xhtml b/src/main/webapp/index.xhtml index 215e753..406de33 100644 --- a/src/main/webapp/index.xhtml +++ b/src/main/webapp/index.xhtml @@ -39,15 +39,11 @@ resizable="false" width="420"> <h:form id="dialogFormPassword"> <p:panelGrid columns="1" styleClass="content"> - <p:outputLabel value="账号"></p:outputLabel> - <p:inputText value="#{userMngController.username}" maxlength="100" - required="true" requiredMessage="请输入原密码"></p:inputText> - <p:outputLabel value="原密码"></p:outputLabel> <p:password value="#{userMngController.oriPassword}" maxlength="100" required="true" requiredMessage="请输入原密码"></p:password> - <p:outputLabel value="新密码"></p:outputLabel> + <p:outputLabel value="新密码(必须是8位以上且包含大小写和特殊字符)"></p:outputLabel> <p:password value="#{userMngController.newPassword}" maxlength="100" required="true" requiredMessage="请输入新密码"></p:password> @@ -70,15 +66,11 @@ closable="false"> <h:form id="changeFormPassword"> <p:panelGrid columns="1" styleClass="content"> - <p:outputLabel value="账号"></p:outputLabel> - <p:inputText value="#{menuController.userName}" maxlength="100" - readonly="true"></p:inputText> - <p:outputLabel value="原密码"></p:outputLabel> <p:password value="#{userMngController.oriPassword}" maxlength="100" required="true" requiredMessage="请输入原密码"></p:password> - <p:outputLabel value="新密码"></p:outputLabel> + <p:outputLabel value="新密码(必须是8位以上且包含大小写和特殊字符)"></p:outputLabel> <p:password value="#{userMngController.newPassword}" maxlength="100" required="true" requiredMessage="请输入新密码"></p:password> @@ -95,12 +87,12 @@ </h:form> </p:dialog> <script> - console.log($('#northForm\\:ischange').val()) - if($('#northForm\\:ischange').val() == 0){ - $("#changePassword").hide(); - }else { - $("#changePassword").show(); - } + // console.log($('#northForm\\:ischange').val()) + // if($('#northForm\\:ischange').val() == 0){ + // $("#changePassword").hide(); + // }else { + // $("#changePassword").show(); + // } </script> </ui:define> -- Gitblit v1.9.2