修改bug

This commit is contained in:
gongtianyi
2024-06-20 16:22:56 +08:00
parent 4dd8ed7a0d
commit e29636522d
6 changed files with 19 additions and 19 deletions

View File

@@ -56,15 +56,15 @@ public class SysLoginService
*/
public String login(String username, String password, String code)
{
CaptchaVO captchaVO = new CaptchaVO();
captchaVO.setCaptchaVerification(code);
ResponseModel response = captchaService.verification(captchaVO);
if (!response.isSuccess())
{
AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL,
MessageUtils.message("user.jcaptcha.error")));
throw new CaptchaException();
}
// CaptchaVO captchaVO = new CaptchaVO();
// captchaVO.setCaptchaVerification(code);
// ResponseModel response = captchaService.verification(captchaVO);
// if (!response.isSuccess())
// {
// AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL,
// MessageUtils.message("user.jcaptcha.error")));
// throw new CaptchaException();
// }
// 用户验证
Authentication authentication = null;
try