增加两次密码必须一致的验证功能
This commit is contained in:
parent
fbebf9235e
commit
3423c43f2d
|
|
@ -12,7 +12,6 @@ import com.ruoyi.dfm.service.FileService;
|
|||
import com.ruoyi.dfm.service.UserService;
|
||||
import com.ruoyi.dfm.util.Md5Util;
|
||||
import com.ruoyi.framework.util.ShiroUtils;
|
||||
import com.ruoyi.system.domain.SysRole;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
|
@ -27,7 +26,6 @@ import org.springframework.web.servlet.ModelAndView;
|
|||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@Controller
|
||||
@RequestMapping("/user.do")
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -158,7 +158,8 @@
|
|||
},
|
||||
password1:{
|
||||
minlength: 4,
|
||||
maxlength: 32
|
||||
maxlength: 32,
|
||||
equalTo: "#password"
|
||||
},
|
||||
email:{
|
||||
email:true,
|
||||
|
|
@ -173,6 +174,12 @@
|
|||
|
||||
}
|
||||
},
|
||||
messages: {
|
||||
password1: {
|
||||
required: "请再次输入新密码",
|
||||
equalTo: "两次密码输入不一致"
|
||||
}
|
||||
},
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue