| | |
| | | |
| | | public Response loginByRSA(String userName, String pwd,String deliveredCode, HttpServletRequest request) { |
| | | Response<Object> response = new Response<>(); |
| | | Locale.setDefault(Locale.ENGLISH); |
| | | deliveredCode = deliveredCode.toUpperCase(); |
| | | //Locale.setDefault(Locale.ENGLISH); |
| | | deliveredCode = deliveredCode.toUpperCase(Locale.ENGLISH); |
| | | if(YamlProperties.fontDynamicCodeSwitch.toLowerCase().equals("true")) { |
| | | String fontDynamicCode = (String) ActionUtil.getSession().getAttribute("fontDynamicCode"); |
| | | if (fontDynamicCode == null || "".equals(fontDynamicCode)) { |
| | | return response.set(1, false, MessageUtils.getMessage("RefreshVerification")); |
| | | } |
| | | if (!deliveredCode.equals(fontDynamicCode.toUpperCase())) { |
| | | if (!deliveredCode.equals(fontDynamicCode.toUpperCase(Locale.ENGLISH))) { |
| | | return response.set(1, false, MessageUtils.getMessage("VerificationError")); |
| | | } |
| | | } |