Browse Source

新增重置密码时进行密码位数校验

nikang 6 years ago
parent
commit
4bd97538e5

+ 3 - 0
stmms-web/src/main/webapp/WEB-INF/views/modules/exam/param/markerList.jsp

@@ -268,6 +268,9 @@ $('.task-btn').click(function () {
       if(password.length == 0){
         wrongMessage.html('密码不能为空!');
         return false;
+      }else if(password.length < 4){
+        wrongMessage.html('密码至少4位!');
+        return false;
       }
       $.post('${ctx}/admin/exam-param/marker/reSetPassword', {id: markerId,password:password}, function(result){
         if(result.success==true){