|
@@ -804,7 +804,7 @@ public class SysUserController extends BaseController
|
|
|
@PutMapping("/resetPwd")
|
|
|
public AjaxResult resetPwd(@RequestBody SysUser user)
|
|
|
{
|
|
|
- String checkPassword = "^(?![0-9]+$)(?![a-z]+$)(?![A-Z]+$)(?!([^(0-9a-zA-Z)])+$).{6,20}$";
|
|
|
+ String checkPassword = "^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,20}$";
|
|
|
Pattern regePassword = Pattern.compile(checkPassword);
|
|
|
Matcher matcherPassword = regePassword.matcher(user.getPassword());
|
|
|
boolean isMatPassword = matcherPassword.matches();
|