123
This commit is contained in:
@@ -62,8 +62,7 @@ public class AdolescentServiceImpl extends ServiceImpl<AdolescentMapper,Adolesce
|
||||
throw new ServiceException("参数不正确");
|
||||
}
|
||||
Adolescent adolescent = this.getByUserId(LoginHelper.getUserId());
|
||||
String hashpw = BCrypt.hashpw(adolescentSwitch.getPassword());
|
||||
if(adolescent == null || !adolescent.getPassword().equals(hashpw)){
|
||||
if(adolescent == null || !BCrypt.checkpw(adolescentSwitch.getPassword(), adolescent.getPassword())){
|
||||
throw new ServiceException("密码错误");
|
||||
}
|
||||
if(adolescentSwitch.getIsOpen() == 0){
|
||||
|
||||
Reference in New Issue
Block a user