|
|
@@ -49,17 +49,17 @@ public class AccountLoginServiceImpl implements AccountLoginService {
|
|
|
public AccountAuthToken getPreAuthentication(AccountLoginDto accountLoginDto) {
|
|
|
String principal = accountLoginDto.getPrincipal();
|
|
|
String credential = accountLoginDto.getCredential();
|
|
|
- String captchaCode = accountLoginDto.getCaptchaCode();
|
|
|
+ //String captchaCode = accountLoginDto.getCaptchaCode();
|
|
|
Boolean rememberMe = accountLoginDto.getRememberMe();
|
|
|
|
|
|
- String savedCaptchaCode = codeService.getCaptcha();
|
|
|
+ /*String savedCaptchaCode = codeService.getCaptcha();
|
|
|
if (savedCaptchaCode == null) {
|
|
|
String errMsg = "当前会话已过期, 请刷新页面后重新登入. 或者检查浏览器是否禁用了 cookie";
|
|
|
throw new PreAuthenticatedCredentialsNotFoundException(errMsg);
|
|
|
} else if (!savedCaptchaCode.equalsIgnoreCase(captchaCode)) {
|
|
|
String errMsg = "图形验证码不正确...";
|
|
|
throw new PreAuthenticatedCredentialsNotFoundException(errMsg);
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
String decryptCredential;
|
|
|
try {
|