|
@@ -9,8 +9,10 @@ import com.zhongzheng.common.core.domain.AjaxResult;
|
|
|
import com.zhongzheng.common.core.domain.entity.SysUser;
|
|
|
import com.zhongzheng.common.core.domain.model.LoginUser;
|
|
|
import com.zhongzheng.common.enums.BusinessType;
|
|
|
+import com.zhongzheng.common.exception.CustomException;
|
|
|
import com.zhongzheng.common.utils.SecurityUtils;
|
|
|
import com.zhongzheng.common.utils.ServletUtils;
|
|
|
+import com.zhongzheng.common.utils.ToolsUtils;
|
|
|
import com.zhongzheng.common.utils.file.FileUploadUtils;
|
|
|
import com.zhongzheng.framework.web.service.TokenService;
|
|
|
import com.zhongzheng.modules.system.service.ISysUserService;
|
|
@@ -94,6 +96,9 @@ public class SysProfileController extends BaseController
|
|
|
{
|
|
|
return AjaxResult.error("修改密码失败,旧密码错误");
|
|
|
}
|
|
|
+ if(!ToolsUtils.verifPwd(newPassword)){
|
|
|
+ throw new CustomException("密码应由8-16位数字、大小写字母、符号组成");
|
|
|
+ }
|
|
|
if (SecurityUtils.matchesPassword(newPassword, password))
|
|
|
{
|
|
|
return AjaxResult.error("新密码不能与旧密码相同");
|