Merge remote-tracking branch 'origin/v8/dev' into v9/feature/merge-v8-05072021
# Conflicts: # build/NuSpecs/UmbracoCms.Web.nuspec # src/SolutionInfo.cs # src/Umbraco.Core/Compose/RelateOnTrashComponent.cs # src/Umbraco.Core/Composing/Current.cs # src/Umbraco.Core/Constants-AppSettings.cs # src/Umbraco.Core/Constants-SqlTemplates.cs # src/Umbraco.Core/Dashboards/ContentDashboardSettings.cs # src/Umbraco.Core/Dashboards/IContentDashboardSettings.cs # src/Umbraco.Core/Extensions/PublishedPropertyExtension.cs # src/Umbraco.Core/HealthChecks/Checks/Services/SmtpCheck.cs # src/Umbraco.Core/Models/IReadOnlyContentBase.cs # src/Umbraco.Core/Models/Mapping/MemberTabsAndPropertiesMapper.cs # src/Umbraco.Core/Models/Mapping/UserMapDefinition.cs # src/Umbraco.Core/Models/ReadOnlyContentBaseAdapter.cs # src/Umbraco.Core/Persistence/NPocoDatabaseExtensions-Bulk.cs # src/Umbraco.Core/PropertyEditors/IPropertyCacheCompression.cs # src/Umbraco.Core/PropertyEditors/IPropertyCacheCompressionOptions.cs # src/Umbraco.Core/PropertyEditors/MediaPicker3Configuration.cs # src/Umbraco.Core/PropertyEditors/NoopPropertyCacheCompressionOptions.cs # src/Umbraco.Core/PropertyEditors/PropertyCacheCompression.cs # src/Umbraco.Core/Routing/UrlProviderExtensions.cs # src/Umbraco.Core/Runtime/CoreRuntime.cs # src/Umbraco.Core/Services/ILocalizedTextService.cs # src/Umbraco.Core/Services/LocalizedTextServiceExtensions.cs # src/Umbraco.Examine.Lucene/BackOfficeExamineSearcher.cs # src/Umbraco.Examine/UmbracoContentIndex.cs # src/Umbraco.Infrastructure/Examine/GenericIndexDiagnostics.cs # src/Umbraco.Infrastructure/IPublishedContentQuery.cs # src/Umbraco.Infrastructure/Migrations/Upgrade/UmbracoPlan.cs # src/Umbraco.Infrastructure/Models/MediaWithCrops.cs # src/Umbraco.Infrastructure/Persistence/NPocoDatabaseExtensions.cs # src/Umbraco.Infrastructure/Persistence/UmbracoDatabase.cs # src/Umbraco.Infrastructure/PropertyEditors/ImageCropperConfiguration.cs # src/Umbraco.Infrastructure/PropertyEditors/MediaPicker3PropertyEditor.cs # src/Umbraco.Infrastructure/PropertyEditors/NestedContentPropertyEditor.cs # src/Umbraco.Infrastructure/PropertyEditors/UploadFileTypeValidator.cs # src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/ImageCropperValue.cs # src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/MediaPickerWithCropsValueConverter.cs # src/Umbraco.Infrastructure/PublishedContentQuery.cs # src/Umbraco.Infrastructure/Search/UmbracoTreeSearcherFields.cs # src/Umbraco.Infrastructure/Services/Implement/LocalizedTextService.cs # src/Umbraco.Persistence.SqlCe/SqlCeSyntaxProvider.cs # src/Umbraco.PublishedCache.NuCache/DataSource/BTree.DictionaryOfPropertyDataSerializer.cs # src/Umbraco.PublishedCache.NuCache/DataSource/BTree.cs # src/Umbraco.PublishedCache.NuCache/DataSource/ContentData.cs # src/Umbraco.PublishedCache.NuCache/DataSource/ContentSourceDto.cs # src/Umbraco.PublishedCache.NuCache/DataSource/PropertyData.cs # src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentTypeServiceVariantsTests.cs # src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/ImageCropperTest.cs # src/Umbraco.Tests/App.config # src/Umbraco.Tests/Models/Mapping/ContentWebModelMappingTests.cs # src/Umbraco.Tests/PublishedContent/NuCacheChildrenTests.cs # src/Umbraco.Tests/PublishedContent/NuCacheTests.cs # src/Umbraco.Tests/Scoping/ScopedNuCacheTests.cs # src/Umbraco.Web.BackOffice/Controllers/CodeFileController.cs # src/Umbraco.Web.BackOffice/Controllers/ContentController.cs # src/Umbraco.Web.BackOffice/Controllers/ContentTypeControllerBase.cs # src/Umbraco.Web.BackOffice/Controllers/DashboardController.cs # src/Umbraco.Web.BackOffice/Controllers/DataTypeController.cs # src/Umbraco.Web.BackOffice/Controllers/MediaController.cs # src/Umbraco.Web.BackOffice/Controllers/PackageInstallController.cs # src/Umbraco.Web.BackOffice/Controllers/TemplateQueryController.cs # src/Umbraco.Web.BackOffice/Mapping/ContentMapDefinition.cs # src/Umbraco.Web.BackOffice/Trees/ContentTreeControllerBase.cs # src/Umbraco.Web.BackOffice/Trees/DataTypeTreeController.cs # src/Umbraco.Web.BackOffice/Trees/MediaTypeTreeController.cs # src/Umbraco.Web.Common/Extensions/FriendlyImageCropperTemplateExtensions.cs # src/Umbraco.Web.Common/Extensions/ImageCropperTemplateCoreExtensions.cs # src/Umbraco.Web.Common/Macros/MacroRenderer.cs # src/Umbraco.Web.UI.NetCore/umbraco/config/lang/da.xml # src/Umbraco.Web.UI/Umbraco/config/lang/it.xml # src/Umbraco.Web.UI/web.Template.Debug.config # src/Umbraco.Web.UI/web.Template.config # src/Umbraco.Web/Compose/NotificationsComponent.cs # src/Umbraco.Web/Composing/ModuleInjector.cs # src/Umbraco.Web/Editors/AuthenticationController.cs # src/Umbraco.Web/Editors/BackOfficeController.cs # src/Umbraco.Web/Editors/ContentTypeController.cs # src/Umbraco.Web/Editors/CurrentUserController.cs # src/Umbraco.Web/Editors/DictionaryController.cs # src/Umbraco.Web/Editors/MediaTypeController.cs # src/Umbraco.Web/Editors/MemberController.cs # src/Umbraco.Web/Editors/MemberGroupController.cs # src/Umbraco.Web/Editors/MemberTypeController.cs # src/Umbraco.Web/Editors/NuCacheStatusController.cs # src/Umbraco.Web/Editors/UserGroupsController.cs # src/Umbraco.Web/Editors/UsersController.cs # src/Umbraco.Web/HealthCheck/Checks/Config/AbstractConfigCheck.cs # src/Umbraco.Web/HealthCheck/Checks/Config/CompilationDebugCheck.cs # src/Umbraco.Web/HealthCheck/Checks/Config/ConfigurationService.cs # src/Umbraco.Web/HealthCheck/Checks/Config/CustomErrorsCheck.cs # src/Umbraco.Web/HealthCheck/Checks/Config/MacroErrorsCheck.cs # src/Umbraco.Web/HealthCheck/Checks/Config/NotificationEmailCheck.cs # src/Umbraco.Web/HealthCheck/Checks/Config/TraceCheck.cs # src/Umbraco.Web/HealthCheck/Checks/Config/TrySkipIisCustomErrorsCheck.cs # src/Umbraco.Web/HealthCheck/Checks/Permissions/FolderAndFilePermissionsCheck.cs # src/Umbraco.Web/HealthCheck/Checks/Security/BaseHttpHeaderCheck.cs # src/Umbraco.Web/HealthCheck/Checks/Security/ExcessiveHeadersCheck.cs # src/Umbraco.Web/HealthCheck/Checks/Security/HttpsCheck.cs # src/Umbraco.Web/HealthCheck/NotificationMethods/EmailNotificationMethod.cs # src/Umbraco.Web/Models/Trees/MenuItemList.cs # src/Umbraco.Web/PublishedCache/NuCache/DataSource/ContentCacheDataModel.cs # src/Umbraco.Web/PublishedCache/NuCache/DataSource/DatabaseDataSource.cs # src/Umbraco.Web/PublishedCache/NuCache/DataSource/SerializerBase.cs # src/Umbraco.Web/PublishedCache/NuCache/NuCacheComposer.cs # src/Umbraco.Web/Runtime/WebRuntime.cs # src/Umbraco.Web/Search/ExamineComponent.cs # src/Umbraco.Web/Trees/ApplicationTreeController.cs # src/Umbraco.Web/Trees/MemberTreeController.cs # src/Umbraco.Web/UrlHelperRenderExtensions.cs
This commit is contained in:
@@ -17,43 +17,43 @@ namespace Umbraco.Cms.Core.Security
|
||||
public override IdentityError DuplicateRoleName(string role) => new IdentityError
|
||||
{
|
||||
Code = nameof(DuplicateRoleName),
|
||||
Description = _textService.Localize("validation/duplicateUserGroupName", new[] { role })
|
||||
Description = _textService.Localize("validation", "duplicateUserGroupName", new[] { role })
|
||||
};
|
||||
|
||||
public override IdentityError InvalidRoleName(string role) => new IdentityError
|
||||
{
|
||||
Code = nameof(InvalidRoleName),
|
||||
Description = _textService.Localize("validation/invalidUserGroupName")
|
||||
Description = _textService.Localize("validation", "invalidUserGroupName")
|
||||
};
|
||||
|
||||
public override IdentityError LoginAlreadyAssociated() => new IdentityError
|
||||
{
|
||||
Code = nameof(LoginAlreadyAssociated),
|
||||
Description = _textService.Localize("user/duplicateLogin")
|
||||
Description = _textService.Localize("user", "duplicateLogin")
|
||||
};
|
||||
|
||||
public override IdentityError UserAlreadyHasPassword() => new IdentityError
|
||||
{
|
||||
Code = nameof(UserAlreadyHasPassword),
|
||||
Description = _textService.Localize("user/userHasPassword")
|
||||
Description = _textService.Localize("user", "userHasPassword")
|
||||
};
|
||||
|
||||
public override IdentityError UserAlreadyInRole(string role) => new IdentityError
|
||||
{
|
||||
Code = nameof(UserAlreadyInRole),
|
||||
Description = _textService.Localize("user/userHasGroup", new[] { role })
|
||||
Description = _textService.Localize("user", "userHasGroup", new[] { role })
|
||||
};
|
||||
|
||||
public override IdentityError UserLockoutNotEnabled() => new IdentityError
|
||||
{
|
||||
Code = nameof(UserLockoutNotEnabled),
|
||||
Description = _textService.Localize("user/userLockoutNotEnabled")
|
||||
Description = _textService.Localize("user", "userLockoutNotEnabled")
|
||||
};
|
||||
|
||||
public override IdentityError UserNotInRole(string role) => new IdentityError
|
||||
{
|
||||
Code = nameof(UserNotInRole),
|
||||
Description = _textService.Localize("user/userNotInGroup", new[] { role })
|
||||
Description = _textService.Localize("user", "userNotInGroup", new[] { role })
|
||||
};
|
||||
}
|
||||
|
||||
@@ -67,43 +67,43 @@ namespace Umbraco.Cms.Core.Security
|
||||
public override IdentityError DuplicateRoleName(string role) => new IdentityError
|
||||
{
|
||||
Code = nameof(DuplicateRoleName),
|
||||
Description = _textService.Localize("validation/duplicateMemberGroupName", new[] { role })
|
||||
Description = _textService.Localize("validation", "duplicateMemberGroupName", new[] { role })
|
||||
};
|
||||
|
||||
public override IdentityError InvalidRoleName(string role) => new IdentityError
|
||||
{
|
||||
Code = nameof(InvalidRoleName),
|
||||
Description = _textService.Localize("validation/invalidMemberGroupName")
|
||||
Description = _textService.Localize("validation", "invalidMemberGroupName")
|
||||
};
|
||||
|
||||
public override IdentityError LoginAlreadyAssociated() => new IdentityError
|
||||
{
|
||||
Code = nameof(LoginAlreadyAssociated),
|
||||
Description = _textService.Localize("member/duplicateMemberLogin")
|
||||
Description = _textService.Localize("member", "duplicateMemberLogin")
|
||||
};
|
||||
|
||||
public override IdentityError UserAlreadyHasPassword() => new IdentityError
|
||||
{
|
||||
Code = nameof(UserAlreadyHasPassword),
|
||||
Description = _textService.Localize("member/memberHasPassword")
|
||||
Description = _textService.Localize("member", "memberHasPassword")
|
||||
};
|
||||
|
||||
public override IdentityError UserAlreadyInRole(string role) => new IdentityError
|
||||
{
|
||||
Code = nameof(UserAlreadyInRole),
|
||||
Description = _textService.Localize("member/memberHasGroup", new[] { role })
|
||||
Description = _textService.Localize("member", "memberHasGroup", new[] { role })
|
||||
};
|
||||
|
||||
public override IdentityError UserLockoutNotEnabled() => new IdentityError
|
||||
{
|
||||
Code = nameof(UserLockoutNotEnabled),
|
||||
Description = _textService.Localize("member/memberLockoutNotEnabled")
|
||||
Description = _textService.Localize("member", "memberLockoutNotEnabled")
|
||||
};
|
||||
|
||||
public override IdentityError UserNotInRole(string role) => new IdentityError
|
||||
{
|
||||
Code = nameof(UserNotInRole),
|
||||
Description = _textService.Localize("member/memberNotInGroup", new[] { role })
|
||||
Description = _textService.Localize("member", "memberNotInGroup", new[] { role })
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,91 +13,91 @@ namespace Umbraco.Cms.Core.Security
|
||||
public override IdentityError ConcurrencyFailure() => new IdentityError
|
||||
{
|
||||
Code = nameof(ConcurrencyFailure),
|
||||
Description = _textService.Localize("errors/concurrencyError")
|
||||
Description = _textService.Localize("errors", "concurrencyError")
|
||||
};
|
||||
|
||||
public override IdentityError DefaultError() => new IdentityError
|
||||
{
|
||||
Code = nameof(DefaultError),
|
||||
Description = _textService.Localize("errors/defaultError")
|
||||
Description = _textService.Localize("errors", "defaultError")
|
||||
};
|
||||
|
||||
public override IdentityError DuplicateEmail(string email) => new IdentityError
|
||||
{
|
||||
Code = nameof(DuplicateEmail),
|
||||
Description = _textService.Localize("validation/duplicateEmail", new[] { email })
|
||||
Description = _textService.Localize("validation", "duplicateEmail", new[] { email })
|
||||
};
|
||||
|
||||
public override IdentityError DuplicateUserName(string userName) => new IdentityError
|
||||
{
|
||||
Code = nameof(DuplicateUserName),
|
||||
Description = _textService.Localize("validation/duplicateUsername", new[] { userName })
|
||||
Description = _textService.Localize("validation", "duplicateUsername", new[] { userName })
|
||||
};
|
||||
|
||||
public override IdentityError InvalidEmail(string email) => new IdentityError
|
||||
{
|
||||
Code = nameof(InvalidEmail),
|
||||
Description = _textService.Localize("validation/invalidEmail")
|
||||
Description = _textService.Localize("validation", "invalidEmail")
|
||||
};
|
||||
|
||||
public override IdentityError InvalidToken() => new IdentityError
|
||||
{
|
||||
Code = nameof(InvalidToken),
|
||||
Description = _textService.Localize("validation/invalidToken")
|
||||
Description = _textService.Localize("validation", "invalidToken")
|
||||
};
|
||||
|
||||
public override IdentityError InvalidUserName(string userName) => new IdentityError
|
||||
{
|
||||
Code = nameof(InvalidUserName),
|
||||
Description = _textService.Localize("validation/invalidUsername")
|
||||
Description = _textService.Localize("validation", "invalidUsername")
|
||||
};
|
||||
|
||||
public override IdentityError PasswordMismatch() => new IdentityError
|
||||
{
|
||||
Code = nameof(PasswordMismatch),
|
||||
Description = _textService.Localize("user/passwordMismatch")
|
||||
Description = _textService.Localize("user", "passwordMismatch")
|
||||
};
|
||||
|
||||
public override IdentityError PasswordRequiresDigit() => new IdentityError
|
||||
{
|
||||
Code = nameof(PasswordRequiresDigit),
|
||||
Description = _textService.Localize("user/passwordRequiresDigit")
|
||||
Description = _textService.Localize("user", "passwordRequiresDigit")
|
||||
};
|
||||
|
||||
public override IdentityError PasswordRequiresLower() => new IdentityError
|
||||
{
|
||||
Code = nameof(PasswordRequiresLower),
|
||||
Description = _textService.Localize("user/passwordRequiresLower")
|
||||
Description = _textService.Localize("user", "passwordRequiresLower")
|
||||
};
|
||||
|
||||
public override IdentityError PasswordRequiresNonAlphanumeric() => new IdentityError
|
||||
{
|
||||
Code = nameof(PasswordRequiresNonAlphanumeric),
|
||||
Description = _textService.Localize("user/passwordRequiresNonAlphanumeric")
|
||||
Description = _textService.Localize("user", "passwordRequiresNonAlphanumeric")
|
||||
};
|
||||
|
||||
public override IdentityError PasswordRequiresUniqueChars(int uniqueChars) => new IdentityError
|
||||
{
|
||||
Code = nameof(PasswordRequiresUniqueChars),
|
||||
Description = _textService.Localize("user/passwordRequiresUniqueChars", new[] { uniqueChars.ToString() })
|
||||
Description = _textService.Localize("user", "passwordRequiresUniqueChars", new[] { uniqueChars.ToString() })
|
||||
};
|
||||
|
||||
public override IdentityError PasswordRequiresUpper() => new IdentityError
|
||||
{
|
||||
Code = nameof(PasswordRequiresUpper),
|
||||
Description = _textService.Localize("user/passwordRequiresUpper")
|
||||
Description = _textService.Localize("user", "passwordRequiresUpper")
|
||||
};
|
||||
|
||||
public override IdentityError PasswordTooShort(int length) => new IdentityError
|
||||
{
|
||||
Code = nameof(PasswordTooShort),
|
||||
Description = _textService.Localize("user/passwordTooShort", new[] { length.ToString() })
|
||||
Description = _textService.Localize("user", "passwordTooShort", new[] { length.ToString() })
|
||||
};
|
||||
|
||||
public override IdentityError RecoveryCodeRedemptionFailed() => new IdentityError
|
||||
{
|
||||
Code = nameof(RecoveryCodeRedemptionFailed),
|
||||
Description = _textService.Localize("login/resetCodeExpired")
|
||||
Description = _textService.Localize("login", "resetCodeExpired")
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user