登录验证码配置优化
This commit is contained in:
@@ -68,7 +68,9 @@ public class LoginEntryPoint {
|
||||
Institutions inst = (Institutions)WebContext.getAttribute(WebConstants.CURRENT_INST);
|
||||
model.put("inst", inst);
|
||||
if(applicationConfig.getLoginConfig().isCaptcha()) {
|
||||
model.put("captcha", "true");
|
||||
model.put("captcha", applicationConfig.getLoginConfig().getCaptchaType());
|
||||
}else {
|
||||
model.put("captcha", "NONE");
|
||||
}
|
||||
model.put("state", authTokenService.genRandomJwt());
|
||||
return new Message<HashMap<String , Object>>(model);
|
||||
|
||||
Reference in New Issue
Block a user