From 27e61d257ed1b4d0d682ae0ec1d97099f854b352 Mon Sep 17 00:00:00 2001 From: "soroush.asadi" Date: Fri, 29 May 2026 02:55:02 +0330 Subject: [PATCH] Set Kavenegar OTP template to meeziotp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Template content: کد ورود : %token / میزی Co-Authored-By: Claude Sonnet 4.6 --- src/Meezi.API/appsettings.json | 2 +- src/Meezi.Admin.API/Services/PlatformIntegrationService.cs | 2 +- .../ExternalServices/KavenegarSmsService.cs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Meezi.API/appsettings.json b/src/Meezi.API/appsettings.json index 667f251..c4a14e2 100644 --- a/src/Meezi.API/appsettings.json +++ b/src/Meezi.API/appsettings.json @@ -38,7 +38,7 @@ "Kavenegar": { "ApiKey": "", "SenderNumber": "90005671", - "OtpTemplate": "verify" + "OtpTemplate": "meeziotp" }, "ZarinPal": { "MerchantId": "", diff --git a/src/Meezi.Admin.API/Services/PlatformIntegrationService.cs b/src/Meezi.Admin.API/Services/PlatformIntegrationService.cs index 5436ef3..fc3c4d7 100644 --- a/src/Meezi.Admin.API/Services/PlatformIntegrationService.cs +++ b/src/Meezi.Admin.API/Services/PlatformIntegrationService.cs @@ -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)); diff --git a/src/Meezi.Infrastructure/ExternalServices/KavenegarSmsService.cs b/src/Meezi.Infrastructure/ExternalServices/KavenegarSmsService.cs index 0001b7b..94163b3 100644 --- a/src/Meezi.Infrastructure/ExternalServices/KavenegarSmsService.cs +++ b/src/Meezi.Infrastructure/ExternalServices/KavenegarSmsService.cs @@ -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); }