Cleaned up config for Security settings

This commit is contained in:
Bjarke Berg
2020-03-12 14:36:25 +01:00
parent e27a05c3e8
commit cb0994a929
41 changed files with 228 additions and 176 deletions

View File

@@ -33,7 +33,7 @@ namespace Umbraco.Web.Models.ContentEditing
if (UserGroups.Any() == false)
yield return new ValidationResult("A user must be assigned to at least one group", new[] { nameof(UserGroups) });
if (Current.Configs.Settings().Security.UsernameIsEmail == false && Username.IsNullOrWhiteSpace())
if (Current.Configs.Security().UsernameIsEmail == false && Username.IsNullOrWhiteSpace())
yield return new ValidationResult("A username cannot be empty", new[] { nameof(Username) });
}
}