!1156 feat: 支持短信重置后台密码

* feat: 支持短信重置后台密码
* 重构管理后台验证码的验证流程
This commit is contained in:
杨宇庆
2025-01-04 03:39:33 +00:00
committed by 芋道源码
parent 182511b65b
commit 8d22ed8bea
11 changed files with 154 additions and 51 deletions

View File

@@ -296,7 +296,8 @@ public class AdminAuthServiceImplTest extends BaseDbUnitTest {
@Test
public void testValidateCaptcha_constraintViolationException() {
// 准备参数
AuthLoginReqVO reqVO = randomPojo(AuthLoginReqVO.class).setCaptchaVerification(null);
AuthLoginReqVO reqVO = randomPojo(AuthLoginReqVO.class);
reqVO.setCaptchaVerification(null);
// mock 验证码打开
ReflectUtil.setFieldValue(authService, "captchaEnable", true);