From 823f2b97e0074d8c1b113d20237c4826806c8242 Mon Sep 17 00:00:00 2001 From: cKey <35512826+colinin@users.noreply.github.com> Date: Sat, 16 Jul 2022 11:50:21 +0800 Subject: [PATCH] add localizer text --- .../LINGYUN/Abp/Account/MyProfileController.cs | 4 ++-- .../LINGYUN/Abp/Identity/Localization/en.json | 1 + .../LINGYUN/Abp/Identity/Localization/zh-Hans.json | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi/LINGYUN/Abp/Account/MyProfileController.cs b/aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi/LINGYUN/Abp/Account/MyProfileController.cs index c290eb5b6..a4d71fbe0 100644 --- a/aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi/LINGYUN/Abp/Account/MyProfileController.cs +++ b/aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi/LINGYUN/Abp/Account/MyProfileController.cs @@ -34,7 +34,7 @@ namespace LINGYUN.Abp.Account await MyProfileAppService.ChangeTwoFactorEnabledAsync(input); } - [HttpPut] + [HttpPost] [Route("send-phone-number-change-code")] public virtual async Task SendChangePhoneNumberCodeAsync(SendChangePhoneNumberCodeInput input) { @@ -48,7 +48,7 @@ namespace LINGYUN.Abp.Account await MyProfileAppService.ChangePhoneNumberAsync(input); } - [HttpPut] + [HttpPost] [Route("send-email-confirm-link")] public async virtual Task SendEmailConfirmLinkAsync(SendEmailConfirmCodeDto input) { diff --git a/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Domain.Shared/LINGYUN/Abp/Identity/Localization/en.json b/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Domain.Shared/LINGYUN/Abp/Identity/Localization/en.json index dc8915354..610572181 100644 --- a/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Domain.Shared/LINGYUN/Abp/Identity/Localization/en.json +++ b/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Domain.Shared/LINGYUN/Abp/Identity/Localization/en.json @@ -58,6 +58,7 @@ "Description:Abp.Identity.User.SmsPhoneNumberConfirmed": "The user confirms the mobile phone verification code template", "DisplayName:Abp.Identity.User.SmsRepetInterval": "SMS verification code validity(min)", "Description:Abp.Identity.User.SmsRepetInterval": "The valid time for the user to send SMS verification code, unit m, default 3min", + "DisplayName:NewPhoneNumber": "New Phone Number", "DisplayName:SmsVerifyCode": "SMS verification code", "DisplayName:EmailVerifyCode": "Mail verification code", "DisplayName:WeChatCode": "Wechat login code", diff --git a/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Domain.Shared/LINGYUN/Abp/Identity/Localization/zh-Hans.json b/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Domain.Shared/LINGYUN/Abp/Identity/Localization/zh-Hans.json index a0882dc0d..c4e922f93 100644 --- a/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Domain.Shared/LINGYUN/Abp/Identity/Localization/zh-Hans.json +++ b/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Domain.Shared/LINGYUN/Abp/Identity/Localization/zh-Hans.json @@ -58,6 +58,7 @@ "Description:Abp.Identity.User.SmsPhoneNumberConfirmed": "用户确认手机号验证码模板", "DisplayName:Abp.Identity.User.SmsRepetInterval": "短信验证码重复发送间隔时间(min)", "Description:Abp.Identity.User.SmsRepetInterval": "短信验证码验证码重复发送的最小时间差,单位为分", + "DisplayName:NewPhoneNumber": "新手机号码", "DisplayName:SmsVerifyCode": "短信验证码", "DisplayName:EmailVerifyCode": "邮件验证码", "DisplayName:WeChatCode": "微信登录凭证",