|
@@ -39,9 +39,6 @@ public class NoLoginController {
|
|
String id = request.getSession().getId();
|
|
String id = request.getSession().getId();
|
|
try {
|
|
try {
|
|
LineCaptcha lineCaptcha = CaptchaUtil.createLineCaptcha(200, 100,4,60);
|
|
LineCaptcha lineCaptcha = CaptchaUtil.createLineCaptcha(200, 100,4,60);
|
|
- while (redisUtil.hasKey(String.format(RedisKeyUtil.loginAuthCode,id))){
|
|
|
|
- lineCaptcha = CaptchaUtil.createLineCaptcha(200, 100,4,60);
|
|
|
|
- }
|
|
|
|
redisUtil.set(String.format(RedisKeyUtil.loginAuthCode,id),lineCaptcha.getCode(),30);
|
|
redisUtil.set(String.format(RedisKeyUtil.loginAuthCode,id),lineCaptcha.getCode(),30);
|
|
lineCaptcha.write(response.getOutputStream());
|
|
lineCaptcha.write(response.getOutputStream());
|
|
response.getOutputStream().close();
|
|
response.getOutputStream().close();
|