From e744baae0448b34df61589ae08d39346ccdfac71 Mon Sep 17 00:00:00 2001 From: maliming <6908465+maliming@users.noreply.github.com> Date: Wed, 16 Sep 2020 17:43:27 +0800 Subject: [PATCH] Add UsersCanNotChangeTwoFactor & CanNotChangeTwoFactor. --- .../Volo/Abp/Identity/IdentityErrorCodes.cs | 2 ++ .../Volo/Abp/Identity/Localization/en.json | 4 +++- .../Volo/Abp/Identity/Localization/zh-Hans.json | 8 ++++++-- .../Volo/Abp/Identity/Localization/zh-Hant.json | 2 ++ 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/modules/identity/src/Volo.Abp.Identity.Domain.Shared/Volo/Abp/Identity/IdentityErrorCodes.cs b/modules/identity/src/Volo.Abp.Identity.Domain.Shared/Volo/Abp/Identity/IdentityErrorCodes.cs index 1defe67eeb..b1a292d30e 100644 --- a/modules/identity/src/Volo.Abp.Identity.Domain.Shared/Volo/Abp/Identity/IdentityErrorCodes.cs +++ b/modules/identity/src/Volo.Abp.Identity.Domain.Shared/Volo/Abp/Identity/IdentityErrorCodes.cs @@ -8,5 +8,7 @@ public const string DuplicateOrganizationUnitDisplayName = "Volo.Abp.Identity:010004"; public const string StaticRoleRenaming = "Volo.Abp.Identity:010005"; public const string StaticRoleDeletion = "Volo.Abp.Identity:010006"; + public const string UsersCanNotChangeTwoFactor = "Volo.Abp.Identity:010007"; + public const string CanNotChangeTwoFactor = "Volo.Abp.Identity:010008"; } } diff --git a/modules/identity/src/Volo.Abp.Identity.Domain.Shared/Volo/Abp/Identity/Localization/en.json b/modules/identity/src/Volo.Abp.Identity.Domain.Shared/Volo/Abp/Identity/Localization/en.json index 166433c5eb..63ad1f2c3e 100644 --- a/modules/identity/src/Volo.Abp.Identity.Domain.Shared/Volo/Abp/Identity/Localization/en.json +++ b/modules/identity/src/Volo.Abp.Identity.Domain.Shared/Volo/Abp/Identity/Localization/en.json @@ -67,6 +67,8 @@ "Volo.Abp.Identity:010004": "There is already an organization unit with name {0}. Two units with same name can not be created in same level.", "Volo.Abp.Identity:010005": "Static roles can not be renamed.", "Volo.Abp.Identity:010006": "Static roles can not be deleted.", + "Volo.Abp.Identity:010007": "You can't change your two factor setting.", + "Volo.Abp.Identity:010008": "It's not allowed to change two factor setting.", "Identity.OrganizationUnit.MaxUserMembershipCount": "Maximum allowed organization unit membership count for a user", "Permission:IdentityManagement": "Identity management", "Permission:RoleManagement": "Role management", @@ -115,4 +117,4 @@ "DisplayName:Abp.Identity.UsersCanChange": "Allow users to change their Two Factor.", "Description:Abp.Identity.UsersCanChange": "Allow users to change their Two Factor." } -} \ No newline at end of file +} diff --git a/modules/identity/src/Volo.Abp.Identity.Domain.Shared/Volo/Abp/Identity/Localization/zh-Hans.json b/modules/identity/src/Volo.Abp.Identity.Domain.Shared/Volo/Abp/Identity/Localization/zh-Hans.json index 8e8c8cbccf..74859aa0f3 100644 --- a/modules/identity/src/Volo.Abp.Identity.Domain.Shared/Volo/Abp/Identity/Localization/zh-Hans.json +++ b/modules/identity/src/Volo.Abp.Identity.Domain.Shared/Volo/Abp/Identity/Localization/zh-Hans.json @@ -61,10 +61,14 @@ "Volo.Abp.Identity:UserNameNotFound": "用户 {0} 不存在.", "Volo.Abp.Identity:UserNotInRole": "用户不具有 '{0}' 角色.", "Volo.Abp.Identity:PasswordConfirmationFailed": "密码或确认密码不一致.", + "Volo.Abp.Identity:010001": "你无法删除自己的帐户!", + "Volo.Abp.Identity:010002": "不能为用户设置超过{MaxUserMembershipCount}个组织单位!", + "Volo.Abp.Identity:010003": "无法更改外部登录用户的密码!", + "Volo.Abp.Identity:010004": "已存在名为 {0} 的组织单位. 无法在同一级别创建相同名称的组织单位.", "Volo.Abp.Identity:010005": "无法重命名静态角色.", "Volo.Abp.Identity:010006": "无法删除静态角色.", - "Volo.Abp.Identity:010004": "已存在名为 {0} 的组织单位. 无法在同一级别创建相同名称的组织单位.", - "Volo.Abp.Identity:010001": "您无法删除自己的帐户!", + "Volo.Abp.Identity:010007": "你不能修改你的双因素身份验证设置", + "Volo.Abp.Identity:010008": "不允许修改双因素身份验证设置.", "Permission:IdentityManagement": "身份标识管理", "Permission:RoleManagement": "角色管理", "Permission:Create": "创建", diff --git a/modules/identity/src/Volo.Abp.Identity.Domain.Shared/Volo/Abp/Identity/Localization/zh-Hant.json b/modules/identity/src/Volo.Abp.Identity.Domain.Shared/Volo/Abp/Identity/Localization/zh-Hant.json index 2881bd886a..54298f530d 100644 --- a/modules/identity/src/Volo.Abp.Identity.Domain.Shared/Volo/Abp/Identity/Localization/zh-Hant.json +++ b/modules/identity/src/Volo.Abp.Identity.Domain.Shared/Volo/Abp/Identity/Localization/zh-Hant.json @@ -67,6 +67,8 @@ "Volo.Abp.Identity:010004": "組織內單位內已包含名稱 {0}.同一層級組織,兩個單位不能有相同名稱", "Volo.Abp.Identity:010005": "無法重命名靜態角色.", "Volo.Abp.Identity:010006": "無法刪除靜態角色.", + "Volo.Abp.Identity:010007": "你不能修改你的雙因素身份驗證設置", + "Volo.Abp.Identity:010008": "不允許修改雙因素身份驗證設置.", "Identity.OrganizationUnit.MaxUserMembershipCount": "允許一個使用者至多可隸屬在幾個組織單位", "Permission:IdentityManagement": "身份識別管理", "Permission:RoleManagement": "角色管理",