fix(auth): send sms verify codes via aliyun
This commit is contained in:
@@ -164,11 +164,11 @@ impl Default for AppConfig {
|
||||
dev_password_entry_auto_register_enabled: false,
|
||||
sms_auth_enabled: false,
|
||||
sms_auth_provider: "mock".to_string(),
|
||||
sms_endpoint: "dypnsapi.aliyuncs.com".to_string(),
|
||||
sms_endpoint: "dysmsapi.aliyuncs.com".to_string(),
|
||||
sms_access_key_id: None,
|
||||
sms_access_key_secret: None,
|
||||
sms_sign_name: "速通互联验证码".to_string(),
|
||||
sms_template_code: "100001".to_string(),
|
||||
sms_sign_name: "北京亓盒网络科技".to_string(),
|
||||
sms_template_code: "SMS_506245486".to_string(),
|
||||
sms_template_param_key: "code".to_string(),
|
||||
sms_country_code: "86".to_string(),
|
||||
sms_scheme_name: None,
|
||||
@@ -1035,7 +1035,10 @@ mod tests {
|
||||
config.dashscope_base_url,
|
||||
"https://dashscope.aliyuncs.com/api/v1"
|
||||
);
|
||||
assert_eq!(config.sms_endpoint, "dypnsapi.aliyuncs.com");
|
||||
assert_eq!(config.sms_endpoint, "dysmsapi.aliyuncs.com");
|
||||
assert_eq!(config.sms_sign_name, "北京亓盒网络科技");
|
||||
assert_eq!(config.sms_template_code, "SMS_506245486");
|
||||
assert_eq!(config.sms_template_param_key, "code");
|
||||
assert_eq!(
|
||||
config.wechat_authorize_endpoint,
|
||||
"https://open.weixin.qq.com/connect/qrconnect"
|
||||
|
||||
Reference in New Issue
Block a user