fix : login opt template , feat : version 0.27.32.53
parent
f62ee59f24
commit
5a38eda328
|
@ -22,6 +22,7 @@
|
||||||
"AdminPanelBaseUrl": "https://admin.hamyan.visabartar.com",
|
"AdminPanelBaseUrl": "https://admin.hamyan.visabartar.com",
|
||||||
"StorageBaseUrl": "https://storage.visabartar.com",
|
"StorageBaseUrl": "https://storage.visabartar.com",
|
||||||
"KaveNegarApiKey": "3735494B4143727A794346457461576A2B4B6668414973424E333561505A694B",
|
"KaveNegarApiKey": "3735494B4143727A794346457461576A2B4B6668414973424E333561505A694B",
|
||||||
|
"LoginOtpTemplate": "login",
|
||||||
"UserSetting": {
|
"UserSetting": {
|
||||||
"Username": "09214802813",
|
"Username": "09214802813",
|
||||||
"Email": "avvampier@gmail.com",
|
"Email": "avvampier@gmail.com",
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
"AdminPanelBaseUrl": "https://admin.vesmeh.com",
|
"AdminPanelBaseUrl": "https://admin.vesmeh.com",
|
||||||
"StorageBaseUrl": "https://storage.vesmeh.com",
|
"StorageBaseUrl": "https://storage.vesmeh.com",
|
||||||
"KaveNegarApiKey": "65334B6A70303233432B7A6530795A51683134524945742F74397161785568512B794966623245744C2F773D",
|
"KaveNegarApiKey": "65334B6A70303233432B7A6530795A51683134524945742F74397161785568512B794966623245744C2F773D",
|
||||||
|
"LoginOtpTemplate": "login-netina",
|
||||||
"UserSetting": {
|
"UserSetting": {
|
||||||
"Username": "09214802813",
|
"Username": "09214802813",
|
||||||
"Email": "avvampier@gmail.com",
|
"Email": "avvampier@gmail.com",
|
||||||
|
|
|
@ -11,6 +11,7 @@ public class SiteSettings
|
||||||
public UserSetting UserSetting { get; set; } = new UserSetting();
|
public UserSetting UserSetting { get; set; } = new UserSetting();
|
||||||
public UserSetting Manager { get; set; } = new UserSetting();
|
public UserSetting Manager { get; set; } = new UserSetting();
|
||||||
public string KaveNegarApiKey { get; set; } = string.Empty;
|
public string KaveNegarApiKey { get; set; } = string.Empty;
|
||||||
|
public string LoginOtpTemplate { get; set; } = string.Empty;
|
||||||
public StorageSettings StorageSetting { get; set; } = new StorageSettings();
|
public StorageSettings StorageSetting { get; set; } = new StorageSettings();
|
||||||
}
|
}
|
||||||
public class RedisSettings
|
public class RedisSettings
|
||||||
|
|
|
@ -37,7 +37,7 @@ public class SmsService : ISmsService
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var rest = await _restApiWrapper.KaveNegarRestApi.SendLookUp(_siteSettings.KaveNegarApiKey, phoneNumber,
|
var rest = await _restApiWrapper.KaveNegarRestApi.SendLookUp(_siteSettings.KaveNegarApiKey, phoneNumber,
|
||||||
verifyCode, null, null, null, "login-netina");
|
verifyCode, null, null, null, _siteSettings.LoginOtpTemplate);
|
||||||
|
|
||||||
if (rest.Return.status != 200 && _environment.IsProduction())
|
if (rest.Return.status != 200 && _environment.IsProduction())
|
||||||
throw new BaseApiException(ApiResultStatusCode.SendSmsError, rest.Return.message);
|
throw new BaseApiException(ApiResultStatusCode.SendSmsError, rest.Return.message);
|
||||||
|
|
Loading…
Reference in New Issue