修改bug
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user