Set Kavenegar OTP template to meeziotp
Template content: کد ورود : %token / میزی Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -38,7 +38,7 @@
|
|||||||
"Kavenegar": {
|
"Kavenegar": {
|
||||||
"ApiKey": "",
|
"ApiKey": "",
|
||||||
"SenderNumber": "90005671",
|
"SenderNumber": "90005671",
|
||||||
"OtpTemplate": "verify"
|
"OtpTemplate": "meeziotp"
|
||||||
},
|
},
|
||||||
"ZarinPal": {
|
"ZarinPal": {
|
||||||
"MerchantId": "",
|
"MerchantId": "",
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ public class PlatformIntegrationService : IPlatformIntegrationService
|
|||||||
var kavenegar = new KavenegarConfigDto(
|
var kavenegar = new KavenegarConfigDto(
|
||||||
map.GetValueOrDefault(KeyKavenegarEnabled) is "true",
|
map.GetValueOrDefault(KeyKavenegarEnabled) is "true",
|
||||||
MaskSecret(map.GetValueOrDefault(KeyKavenegarApi)),
|
MaskSecret(map.GetValueOrDefault(KeyKavenegarApi)),
|
||||||
map.GetValueOrDefault(KeyKavenegarOtpTemplate) ?? "verify",
|
map.GetValueOrDefault(KeyKavenegarOtpTemplate) ?? "meeziotp",
|
||||||
map.GetValueOrDefault(KeyKavenegarSender) ?? string.Empty,
|
map.GetValueOrDefault(KeyKavenegarSender) ?? string.Empty,
|
||||||
HasSecret(map, KeyKavenegarApi));
|
HasSecret(map, KeyKavenegarApi));
|
||||||
|
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ public class KavenegarSmsService : ISmsService
|
|||||||
var enabled = await _platform.GetAsync(DbKeyEnabled, ct);
|
var enabled = await _platform.GetAsync(DbKeyEnabled, ct);
|
||||||
// If explicitly disabled in DB, short-circuit
|
// If explicitly disabled in DB, short-circuit
|
||||||
if (enabled is "false")
|
if (enabled is "false")
|
||||||
return (null, string.Empty, "verify");
|
return (null, string.Empty, "meeziotp");
|
||||||
|
|
||||||
var apiKey = await _platform.GetAsync(DbKeyApiKey, ct);
|
var apiKey = await _platform.GetAsync(DbKeyApiKey, ct);
|
||||||
if (string.IsNullOrWhiteSpace(apiKey))
|
if (string.IsNullOrWhiteSpace(apiKey))
|
||||||
@@ -220,7 +220,7 @@ public class KavenegarSmsService : ISmsService
|
|||||||
|
|
||||||
var template = await _platform.GetAsync(DbKeyOtpTemplate, ct);
|
var template = await _platform.GetAsync(DbKeyOtpTemplate, ct);
|
||||||
if (string.IsNullOrWhiteSpace(template))
|
if (string.IsNullOrWhiteSpace(template))
|
||||||
template = _configuration["Kavenegar:OtpTemplate"] ?? "verify";
|
template = _configuration["Kavenegar:OtpTemplate"] ?? "meeziotp";
|
||||||
|
|
||||||
return (apiKey, sender, template);
|
return (apiKey, sender, template);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user