Set Kavenegar OTP template to meeziotp

Template content: کد ورود : %token / میزی

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
soroush.asadi
2026-05-29 02:55:02 +03:30
parent fc21471131
commit 27e61d257e
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -38,7 +38,7 @@
"Kavenegar": {
"ApiKey": "",
"SenderNumber": "90005671",
"OtpTemplate": "verify"
"OtpTemplate": "meeziotp"
},
"ZarinPal": {
"MerchantId": "",
@@ -56,7 +56,7 @@ public class PlatformIntegrationService : IPlatformIntegrationService
var kavenegar = new KavenegarConfigDto(
map.GetValueOrDefault(KeyKavenegarEnabled) is "true",
MaskSecret(map.GetValueOrDefault(KeyKavenegarApi)),
map.GetValueOrDefault(KeyKavenegarOtpTemplate) ?? "verify",
map.GetValueOrDefault(KeyKavenegarOtpTemplate) ?? "meeziotp",
map.GetValueOrDefault(KeyKavenegarSender) ?? string.Empty,
HasSecret(map, KeyKavenegarApi));
@@ -208,7 +208,7 @@ public class KavenegarSmsService : ISmsService
var enabled = await _platform.GetAsync(DbKeyEnabled, ct);
// If explicitly disabled in DB, short-circuit
if (enabled is "false")
return (null, string.Empty, "verify");
return (null, string.Empty, "meeziotp");
var apiKey = await _platform.GetAsync(DbKeyApiKey, ct);
if (string.IsNullOrWhiteSpace(apiKey))
@@ -220,7 +220,7 @@ public class KavenegarSmsService : ISmsService
var template = await _platform.GetAsync(DbKeyOtpTemplate, ct);
if (string.IsNullOrWhiteSpace(template))
template = _configuration["Kavenegar:OtpTemplate"] ?? "verify";
template = _configuration["Kavenegar:OtpTemplate"] ?? "meeziotp";
return (apiKey, sender, template);
}