Commit b37a0a53 authored by 技术部-任文超's avatar 技术部-任文超

内部免密重置为给定密码时,延续6~12位字符的规范

parent 237cafcf
...@@ -1363,6 +1363,9 @@ public class InnerController implements IBaseController { ...@@ -1363,6 +1363,9 @@ public class InnerController implements IBaseController {
@RequestMapping(path = "/user/password/reset", method = RequestMethod.POST) @RequestMapping(path = "/user/password/reset", method = RequestMethod.POST)
public JsonResult resetPassword(@RequestParam("phone") String phone, @RequestParam(required = false) String password) { public JsonResult resetPassword(@RequestParam("phone") String phone, @RequestParam(required = false) String password) {
if (ValidationUtil.validatePhoneNo(phone)) { if (ValidationUtil.validatePhoneNo(phone)) {
if (StringUtils.isNotBlank(password) && (password.length() < 6 || password.length() > 12)) {
return JsonResult.buildErrorStateResult("密码应为6-12位", null);
}
try { try {
// 默认重置的密码是123456 // 默认重置的密码是123456
password = StringUtils.isBlank(password) ? "123456" : password; password = StringUtils.isBlank(password) ? "123456" : password;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment