avalon
Toggle table of contents
0.0.1-SNAPSHOT
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
avalon
avalon-authorization
/
io.github.lishangbu.avalon.authorization.service.impl
/
VerificationCodeServiceImpl
Verification
Code
Service
Impl
@
Service
class
VerificationCodeServiceImpl
(
stringRedisTemplate
:
StringRedisTemplate
,
oauth2Properties
:
Oauth2Properties
)
:
AbstractVerificationCodeService
验证码服务实现
使用 Redis 存储验证码,并通过日志输出短信与邮件内容
Author
lishangbu
Since
2026/3/13
Members
Constructors
Verification
Code
Service
Impl
Link copied to clipboard
constructor
(
stringRedisTemplate
:
StringRedisTemplate
,
oauth2Properties
:
Oauth2Properties
)
Types
Companion
Link copied to clipboard
object
Companion
Functions
generate
Code
Link copied to clipboard
open
override
fun
generateCode
(
target
:
String
,
type
:
String
)
:
String
生成状态码
verify
Code
Link copied to clipboard
open
override
fun
verifyCode
(
target
:
String
,
code
:
String
,
type
:
String
)
返回校验状态码