| | |
| | | import org.dromara.common.mail.config.properties.MailProperties; |
| | | import org.dromara.common.mail.utils.MailUtils; |
| | | import org.dromara.common.redis.utils.RedisUtils; |
| | | import org.dromara.common.sms.config.properties.SmsProperties; |
| | | import org.dromara.common.web.config.properties.CaptchaProperties; |
| | | import org.dromara.common.web.enums.CaptchaType; |
| | | import org.dromara.sms4j.api.SmsBlend; |
| | |
| | | public class CaptchaController { |
| | | |
| | | private final CaptchaProperties captchaProperties; |
| | | private final SmsProperties smsProperties; |
| | | private final MailProperties mailProperties; |
| | | |
| | | /** |
| | |
| | | /** |
| | | * 生成验证码 |
| | | */ |
| | | @GetMapping("/code") |
| | | @GetMapping("/auth/code") |
| | | public R<CaptchaVo> getCode() { |
| | | CaptchaVo captchaVo = new CaptchaVo(); |
| | | boolean captchaEnabled = captchaProperties.getEnable(); |