|
@@ -76,6 +76,9 @@ public class UserCloudServiceProvider extends ControllerSupport implements UserC
|
|
|
// 常规账户登录
|
|
|
if (AccountType.COMMON_LOGIN_NAME.getCode().equals(accountType)) {
|
|
|
User user = userService.getUser(Long.parseLong(rootOrgId), accountValue);
|
|
|
+ if (null == user) {
|
|
|
+ throw new StatusException("B-001004", "用户不存在");
|
|
|
+ }
|
|
|
String rightPassword = user.getPassword();
|
|
|
if (!rightPassword.equals(password)) {
|
|
|
throw new StatusException("B-001003", "密码错误");
|