diff --git a/maxkey-authentications/maxkey-authentication-sms/src/main/java/org/maxkey/password/sms/SmsOtpAuthnService.java b/maxkey-authentications/maxkey-authentication-sms/src/main/java/org/maxkey/password/sms/SmsOtpAuthnService.java index 440f42155..825438e92 100644 --- a/maxkey-authentications/maxkey-authentication-sms/src/main/java/org/maxkey/password/sms/SmsOtpAuthnService.java +++ b/maxkey-authentications/maxkey-authentication-sms/src/main/java/org/maxkey/password/sms/SmsOtpAuthnService.java @@ -71,7 +71,7 @@ public class SmsOtpAuthnService { if(smsProvider.getProvider().equalsIgnoreCase("aliyun")) { SmsOtpAuthnAliyun aliyun = new SmsOtpAuthnAliyun( smsProvider.getAppKey(), - smsProvider.getAppSecret(), + PasswordReciprocal.getInstance().decoder(smsProvider.getAppSecret()), smsProvider.getTemplateId(), smsProvider.getSignName() ); @@ -82,7 +82,7 @@ public class SmsOtpAuthnService { }else if(smsProvider.getProvider().equalsIgnoreCase("tencentcloud")) { SmsOtpAuthnTencentCloud tencentCloud = new SmsOtpAuthnTencentCloud( smsProvider.getAppKey(), - smsProvider.getAppSecret(), + PasswordReciprocal.getInstance().decoder(smsProvider.getAppSecret()), smsProvider.getSmsSdkAppId(), smsProvider.getTemplateId(), smsProvider.getSignName() @@ -94,7 +94,7 @@ public class SmsOtpAuthnService { }else if(smsProvider.getProvider().equalsIgnoreCase("neteasesms")) { SmsOtpAuthnYunxin yunxin = new SmsOtpAuthnYunxin( smsProvider.getAppKey(), - smsProvider.getAppSecret(), + PasswordReciprocal.getInstance().decoder(smsProvider.getAppSecret()), smsProvider.getTemplateId() ); if(redisOptTokenStore != null) {