Cleanup usages of Configs

This commit is contained in:
Bjarke Berg
2020-09-08 13:03:43 +02:00
parent 3efee8284a
commit e079bd5a50
59 changed files with 265 additions and 275 deletions

View File

@@ -34,7 +34,7 @@ namespace Umbraco.Web.Models.ContentEditing
yield return new ValidationResult("A user must be assigned to at least one group", new[] { nameof(UserGroups) });
// TODO: this will need another way of retrieving this setting if and when Configs are removed from Current.
if (Current.Configs.Security().UsernameIsEmail == false && Username.IsNullOrWhiteSpace())
if (Current.SecuritySettings.UsernameIsEmail == false && Username.IsNullOrWhiteSpace())
yield return new ValidationResult("A username cannot be empty", new[] { nameof(Username) });
}
}