From 8676a99b3ae5cb87c1115ce2f4c846268800aadd Mon Sep 17 00:00:00 2001 From: Robert Date: Wed, 1 Nov 2017 09:00:05 +0100 Subject: [PATCH] Trimming login input on the server-side as well --- src/Umbraco.Web/Editors/MemberController.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web/Editors/MemberController.cs b/src/Umbraco.Web/Editors/MemberController.cs index 888d097bf4..59030dbb40 100644 --- a/src/Umbraco.Web/Editors/MemberController.cs +++ b/src/Umbraco.Web/Editors/MemberController.cs @@ -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);