Trimming login input on the server-side as well

This commit is contained in:
Robert
2017-11-01 09:00:05 +01:00
parent 0b2cfe956d
commit 8676a99b3a

View File

@@ -393,8 +393,9 @@ namespace Umbraco.Web.Editors
UpdateName(contentItem);
//map the custom properties - this will already be set for new entities in our member binder
contentItem.PersistedContent.Email = contentItem.Email;
contentItem.PersistedContent.Username = contentItem.Username;
contentItem.PersistedContent.Email = contentItem.Email;
//trim the username as we do not want trailing space - issue U4-10589
contentItem.PersistedContent.Username = contentItem.Username.Trim();
//use the base method to map the rest of the properties
base.MapPropertyValues(contentItem);