소스 검색

。。。。

wangwei 6 년 전
부모
커밋
7099a29277
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 5 5
      examcloud-core-basic-service/src/main/java/cn/com/qmth/examcloud/core/basic/service/impl/AuthServiceImpl.java

+ 5 - 5
examcloud-core-basic-service/src/main/java/cn/com/qmth/examcloud/core/basic/service/impl/AuthServiceImpl.java

@@ -155,15 +155,15 @@ public class AuthServiceImpl implements AuthService {
 		if (AccountType.COMMON_LOGIN_NAME.equals(accountTypeEnum)) {
 			UserEntity userEntity = userRepo.findByRootOrgIdAndLoginName(rootOrgId, accountValue);
 			if (null == userEntity) {
-				throw new StatusException("B-001004", "用户不存在");
+				throw new StatusException("B-001004", "账号或密码错误");
 			}
 			if (null != userEntity.getEnable() && !userEntity.getEnable()) {
-				throw new StatusException("B-001005", "账被禁用");
+				throw new StatusException("B-001005", "账被禁用");
 			}
 			String rightPassword = userEntity.getPassword();
 			if (!rightPassword.equals(password)) {
 				whenPasswordError(accountType, accountValue);
-				throw new StatusException("B-001003", "密码错误");
+				throw new StatusException("B-001003", "账号或密码错误");
 			}
 			user.setUserId(userEntity.getId());
 			user.setUserType(UserType.COMMON);
@@ -184,7 +184,7 @@ public class AuthServiceImpl implements AuthService {
 			}
 
 			if (null == student) {
-				throw new StatusException("B-001110", "学生不存在");
+				throw new StatusException("B-001110", "账号或密码错误");
 			}
 			if (null != student.getEnable() && !student.getEnable()) {
 				throw new StatusException("B-001005", "账户被禁用");
@@ -192,7 +192,7 @@ public class AuthServiceImpl implements AuthService {
 			String rightPassword = student.getPassword();
 			if (!rightPassword.equals(password)) {
 				whenPasswordError(accountType, accountValue);
-				throw new StatusException("B-001003", "密码错误");
+				throw new StatusException("B-001003", "账号或密码错误");
 			}
 
 			user.setUserId(student.getId());