双因子验证
开启双因子验证
hsweb:
authorize:
two-factor:
enable: true
totp:
enable: true # 开启totp支持
domain: hsweb.me@PostMapping
@TwoFactor("update-password") //调用此接口时,需要进行双因子验证
public ResponseMessage<Boolean> updatePassword(String password){
//业务逻辑
}TOTP
验证流程
自定义验证策略
Last updated
Was this helpful?