fix(sso): 修复Bean方法名与字段名冲突
Bean方法名从lineCaptcha改为captchaGenerator,避免与@Resource字段名冲突 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
0d6c3e353a
commit
5028ec4b8f
@ -31,7 +31,7 @@ public class VerifyServiceImpl implements VerifyService {
|
|||||||
private ICaptcha lineCaptcha;
|
private ICaptcha lineCaptcha;
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public ICaptcha lineCaptcha() {
|
public ICaptcha captchaGenerator() {
|
||||||
RandomGenerator randomGenerator = new RandomGenerator("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", 4);
|
RandomGenerator randomGenerator = new RandomGenerator("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", 4);
|
||||||
cn.hutool.captcha.CircleCaptcha captcha = CaptchaUtil.createCircleCaptcha(120, 40, 4, 20);
|
cn.hutool.captcha.CircleCaptcha captcha = CaptchaUtil.createCircleCaptcha(120, 40, 4, 20);
|
||||||
captcha.setGenerator(randomGenerator);
|
captcha.setGenerator(randomGenerator);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user