Commit ffc13e4f by leialin

Merge branch 'lal' into 'develop'

Lal

See merge request 8timerv2/8timerapiv200!290
parents ab4ff0b0 659cd8ad
......@@ -154,6 +154,9 @@ public class LoginController {
@Value("${config-8timer.qyxx.summary}")
private String summary;
@Value("${config-8timer.authentication-code}")
public String authentication_code;
@Autowired
private HttpSession session;
......@@ -284,10 +287,17 @@ public class LoginController {
String code = entRegisterDto.getCode().toString();
String codeRedis = session.getAttribute(phone) != null ? session.getAttribute(phone).toString() : "";
if(authentication_code !=null && !("").equals(authentication_code)) {
if (authentication_code.equals(code)) {
return ResultUtil.success("验证码正确");
}
}
if (code == null || !code.equals(codeRedis)) {
return ResultUtil.error("验证码不符");
}
return ResultUtil.success("验证码正确");
}
......
......@@ -172,6 +172,7 @@ logging:
config-8timer:
machine8timerUrl: 'http://test-8timer-fk.youlingrc.com'
authentication-code: '888888'
register-free-time: 90 #系统赠送时间
register-company-max-num: 100 #默认最大公司数量
register-childAccount-max-num: 10 #默认最大子账号数量
......
......@@ -147,6 +147,7 @@ logging:
config-8timer:
machine8timerUrl: 'http://test-8timer-fk.youlingrc.com'
authentication-code: ''
register-free-time: 90 #系统赠送时间
register-company-max-num: 100
register-childAccount-max-num: 10
......
......@@ -146,6 +146,7 @@ logging:
config-8timer:
machine8timerUrl: 'http://test-8timer-fk.youlingrc.com'
authentication-code: '888888'
register-free-time: 90 #系统赠送时间
register-company-max-num: 100
register-childAccount-max-num: 10
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment