Compare commits
No commits in common. "5d39361ab151b1f2c39088dea29a3d3f78eebc19" and "bff70a216a1bf19fa4394d81965e7e9cc36d13d7" have entirely different histories.
5d39361ab1
...
bff70a216a
|
|
@ -47,6 +47,7 @@ public class AuthServiceImpl implements AuthService {
|
|||
} else if (!loginRequest.getEmail().isEmpty()) {
|
||||
user = userMapper.findByEmail(loginRequest.getEmail());
|
||||
}
|
||||
System.out.println(user);
|
||||
// 用户不存在
|
||||
if (user == null) {
|
||||
throw new UserNotFoundException();
|
||||
|
|
@ -54,6 +55,7 @@ public class AuthServiceImpl implements AuthService {
|
|||
|
||||
// 检查密码是否匹配
|
||||
if (!PasswordUtil.matches(loginRequest.getPassword(), user.getPassword())) {
|
||||
|
||||
throw new PasswordIncorrectException();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue