|
@@ -228,7 +228,7 @@ public class StudentController extends ControllerSupport {
|
|
|
if (StringUtils.isEmpty(newPassword)) {
|
|
|
throw new StatusException("B-450111", "新密码为空");
|
|
|
}
|
|
|
- if (newPassword.matches("[a-zA-Z0-9]{6,18}")) {
|
|
|
+ if (!newPassword.matches("[a-zA-Z0-9]{6,18}")) {
|
|
|
throw new StatusException("B-450111", "密码必须为6至18位字母和数字组合");
|
|
|
}
|
|
|
|