|
@@ -228,7 +228,9 @@ public class AdminUserServiceImpl implements AdminUserService {
|
|
|
public void updateUserPassword(Long id, String password) {
|
|
|
// 1. 校验用户存在
|
|
|
AdminUserDO user = validateUserExists(id);
|
|
|
-
|
|
|
+ if (!ValidationUtils.isValidPassword(password)) {// 校验密码
|
|
|
+ throw exception(USER_PASSWORD_SIMPLE_FAILED);
|
|
|
+ }
|
|
|
// 2. 更新密码
|
|
|
AdminUserDO updateObj = new AdminUserDO();
|
|
|
updateObj.setId(id);
|
|
@@ -271,11 +273,13 @@ public class AdminUserServiceImpl implements AdminUserService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @TenantIgnore
|
|
|
public AdminUserDO getUserByUsername(String username) {
|
|
|
return userMapper.selectByUsername(username);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @TenantIgnore
|
|
|
public AdminUserDO getUserByMobile(String mobile) {
|
|
|
return userMapper.selectByMobile(mobile);
|
|
|
}
|