Commit 5460516b by liuzz

删除验证码逻辑

parent 2d1e8c99
...@@ -28,13 +28,13 @@ public class SysLoginService { ...@@ -28,13 +28,13 @@ public class SysLoginService {
public String login(String username, String password, String code, String uuid) { public String login(String username, String password, String code, String uuid) {
if (!password.isEmpty() && !uuid.isEmpty()) { if (!password.isEmpty() && !uuid.isEmpty()) {
String verifyKey = "captcha_codes:" + uuid; /*String verifyKey = "captcha_codes:" + uuid;
String captcha = this.redisCache.getCacheObject(verifyKey); String captcha = this.redisCache.getCacheObject(verifyKey);
this.redisCache.deleteObject(verifyKey); this.redisCache.deleteObject(verifyKey);
if (captcha == null) { if (captcha == null) {
AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, "Error", MessageUtils.message("user.jcaptcha.error"))); AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, "Error", MessageUtils.message("user.jcaptcha.error")));
throw new CaptchaExpireException(); throw new CaptchaExpireException();
} }*/
} else { } else {
this.redisCache.deleteObject(username); this.redisCache.deleteObject(username);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment