登录验证码配置优化

This commit is contained in:
MaxKey
2024-12-30 09:09:18 +08:00
parent 0ff07a42e7
commit 63ce90286e
6 changed files with 26 additions and 5 deletions

View File

@@ -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);