mirror of
https://gitee.com/dromara/MaxKey.git
synced 2026-05-18 22:38:09 +08:00
v 1.5.0 RC2
v 1.5.0 RC2
This commit is contained in:
@@ -120,24 +120,19 @@ public class MaxKeyConfig {
|
||||
return new SavedRequestAwareAuthenticationSuccessHandler();
|
||||
}
|
||||
|
||||
|
||||
@Value("${config.otp.keyuri.format.type:totp}")
|
||||
String keyuriFormatType;
|
||||
|
||||
@Value("${config.otp.keyuri.format.domain:MaxKey.top}")
|
||||
String keyuriFormatDomain;
|
||||
|
||||
@Value("${config.otp.keyuri.format.issuer:MaxKey}")
|
||||
String keyuriFormatIssuer;
|
||||
|
||||
@Value("${config.otp.keyuri.format.digits:6}")
|
||||
int keyuriFormatDigits;
|
||||
|
||||
@Value("${config.otp.keyuri.format.period:30}")
|
||||
int keyuriFormatPeriod;
|
||||
|
||||
@Bean(name = "keyUriFormat")
|
||||
public KeyUriFormat keyUriFormat() {
|
||||
public KeyUriFormat keyUriFormat(
|
||||
@Value("${config.otp.keyuri.format.type:totp}")
|
||||
String keyuriFormatType,
|
||||
@Value("${config.otp.keyuri.format.domain:MaxKey.top}")
|
||||
String keyuriFormatDomain,
|
||||
@Value("${config.otp.keyuri.format.issuer:MaxKey}")
|
||||
String keyuriFormatIssuer,
|
||||
@Value("${config.otp.keyuri.format.digits:6}")
|
||||
int keyuriFormatDigits,
|
||||
@Value("${config.otp.keyuri.format.period:30}")
|
||||
int keyuriFormatPeriod) {
|
||||
|
||||
KeyUriFormat keyUriFormat=new KeyUriFormat();
|
||||
keyUriFormat.setType(keyuriFormatType);
|
||||
keyUriFormat.setDomain(keyuriFormatDomain);
|
||||
|
||||
Reference in New Issue
Block a user