|
@@ -53,7 +53,7 @@ public class UserLogicImpl extends BaseLogic implements UserLogic {
|
|
@Override
|
|
@Override
|
|
public Boolean checkPassword(UserDTO userDTO) {
|
|
public Boolean checkPassword(UserDTO userDTO) {
|
|
String password = userDTO.getPassword();
|
|
String password = userDTO.getPassword();
|
|
- User user = new User();
|
|
|
|
|
|
+ User user;
|
|
if (userDTO.getEmail().isEmpty() && userDTO.getMobile().isEmpty()) {
|
|
if (userDTO.getEmail().isEmpty() && userDTO.getMobile().isEmpty()) {
|
|
throw new HttpBadRequestException("empty username");
|
|
throw new HttpBadRequestException("empty username");
|
|
}
|
|
}
|