Merge branch 'dev' of github.com:halo-dev/halo into dev

pull/351/head
ruibaby 2019-10-19 20:02:50 +08:00
commit dd0b161856
1 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ public class UserServiceImpl extends AbstractCrudService<User, Integer> implemen
@Override @Override
public User getByUsernameOfNonNull(String username) { public User getByUsernameOfNonNull(String username) {
return getByUsername(username).orElseThrow(() -> new NotFoundException("The username dose not exist").setErrorData(username)); return getByUsername(username).orElseThrow(() -> new NotFoundException("The username does not exist").setErrorData(username));
} }
@Override @Override
@ -85,7 +85,7 @@ public class UserServiceImpl extends AbstractCrudService<User, Integer> implemen
@Override @Override
public User getByEmailOfNonNull(String email) { public User getByEmailOfNonNull(String email) {
return getByEmail(email).orElseThrow(() -> new NotFoundException("The email dose not exist").setErrorData(email)); return getByEmail(email).orElseThrow(() -> new NotFoundException("The email does not exist").setErrorData(email));
} }
@Override @Override