captcha Support

This commit is contained in:
MaxKey
2022-03-15 15:37:19 +08:00
parent be44a579c6
commit 7f39c233f6
5 changed files with 109 additions and 65 deletions

View File

@@ -121,7 +121,7 @@ public class LoginEndpoint {
modelAndView.addObject("userDomainUrlJson", kerberosService.buildKerberosProxys());
}
Institutions inst = (Institutions)WebContext.getAttribute(WebConstants.CURRENT_INST);
modelAndView.addObject("isCaptcha", inst.isCaptchaSupport());
modelAndView.addObject("isCaptcha", inst.isTrueCaptchaSupport());
modelAndView.addObject("captcha", inst.getCaptcha());
modelAndView.addObject("sessionid", WebContext.getSession().getId());
//modelAndView.addObject("jwtToken",jwtLoginService.buildLoginJwt());