fix 企业端短信登录接口

This commit is contained in:
lijiarao
2021-09-24 16:44:16 +08:00
parent 8b39fd49de
commit 00fb5f90bf
@@ -190,6 +190,9 @@ public class CompanyLoginController {
BeanUtils.copyProperties(contactsManagement, loginUser);
baseCommonService.addLog("用户名: " + phone + ",登录成功!", CommonConstant.LOG_TYPE_1, null, loginUser);
//update-end--Author:wangshuai Date:20200714 for:登录日志没有记录人员
if (Objects.isNull(contactsManagement.getPassword())){
result.setMessage("updatePassword");
}
return result;
}
@@ -264,11 +267,7 @@ public class CompanyLoginController {
}
sysBaseAPI.sendVerificationCode(phone,"2",null,null);
String string = redisUtil.get("_verification:_phone:" + PasswordUtil.decrypt(phone)).toString();
if (Objects.isNull(contactsManagement.getPassword())){
return Result.error(string+"updatePassword");
}else {
return Result.OK(string);
}
return Result.OK(string);
}
@ApiOperation(value = "短信验证码修改密码")