Compare commits
2 Commits
bff70a216a
...
5d39361ab1
| Author | SHA1 | Date |
|---|---|---|
|
|
5d39361ab1 | |
|
|
dd678af1a2 |
|
|
@ -47,7 +47,6 @@ 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();
|
||||
|
|
@ -55,7 +54,6 @@ public class AuthServiceImpl implements AuthService {
|
|||
|
||||
// 检查密码是否匹配
|
||||
if (!PasswordUtil.matches(loginRequest.getPassword(), user.getPassword())) {
|
||||
|
||||
throw new PasswordIncorrectException();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue