|
|
@@ -380,7 +380,7 @@ public class UserService {
|
|
|
}
|
|
|
|
|
|
public void forgetPassword(String name, String phone, String password) {
|
|
|
- User user = userRepo.findByPhoneAndDelFalse(phone);
|
|
|
+ User user = userRepo.findByPhoneAndDelFalse(phone.trim());
|
|
|
if (ObjectUtil.isNull(user)) {
|
|
|
throw new BusinessException("此手机号并未注册!");
|
|
|
}
|