fix(sso): 修复验证码每次返回相同图片的问题
每次调用createCode()重新生成验证码 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
48d5f46c17
commit
24374d72fe
@ -63,6 +63,8 @@ public class VerifyServiceImpl implements VerifyService {
|
||||
@Override
|
||||
public CommonResult<Map<String, String>> getCaptcha(String remoteId) {
|
||||
cn.hutool.captcha.CircleCaptcha circleCaptcha = (cn.hutool.captcha.CircleCaptcha) lineCaptcha;
|
||||
// 重新生成验证码,否则返回的总是相同的图片
|
||||
circleCaptcha.createCode();
|
||||
String code = circleCaptcha.getCode();
|
||||
String uuid = IdUtil.fastSimpleUUID();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user