* Added Username policies
* Added newline at the end of files
# Conflicts:
# src/Orchard.Web/Modules/Orchard.Users/Services/AccountValidationService.cs
* Added check for username length that must be under 255 characters (even if username policies are disabled).
If username isn't modified, policies are not enforced when saving the user inside backoffice.
Default length limits are 1 and 255.
* Added UsernameValidationError.cs
Added a setting to bypass non fatal errors and show them as warning when creating/editing users from the backoffice
Added the relative checkbox in RegistrationSettings.cshtml
Modified the UsernameMeetsPolicies method to use the new class
Modified AdminController (CreatePOST, EditPOST) and AccountController (Register)
* If username is an email check that it matches the specified email
* Added hints to UserRegistrationSettings view
Changed the severity of some custom policies errors
* Removed UsernameValidLengthAttribute.cs, if MinimumUsernameLength and MaximumUsernameLength settings don't make sense these settings are ignored
* bugfix. The admin could change the a username setting an already existing username.
Co-authored-by: Andrea Piovanelli <andrea.piovanelli@laser-group.com>
* Added hint in EditField view
* Added hint to EditTypeViewModel.cshtml to show technical name in list of content types
* fixed typo
* Clarified hint displaying technical name.
Co-authored-by: Andrea Piovanelli <andrea.piovanelli@laser-group.com>
* If there is nothing to import for MediaLibraryPickerField and ContentPickerField, the field doesn't need to be reset.
* Checked the presence of the field inside the import context to avoid resetting the field value even if the field isn't imported.
This applies to ContentPickerField, MediaLibraryPickerField and NumericField.