diff --git a/assemblies/pentaho-war/src/main/webapp/jsp/PUCLogin.jsp b/assemblies/pentaho-war/src/main/webapp/jsp/PUCLogin.jsp index 4a6c9db4f1..49d4da7d9d 100644 --- a/assemblies/pentaho-war/src/main/webapp/jsp/PUCLogin.jsp +++ b/assemblies/pentaho-war/src/main/webapp/jsp/PUCLogin.jsp @@ -350,8 +350,7 @@ var userState = ''; <% } %> - let trimmedValue = $("#login #j_username").val().trim(); - $("#login #j_username").val(trimmedValue); + $("#j_username").val($("#j_username").val().trim()); jQuery.ajax({ type: "POST",