From 31747ff65e02f5b4b480ceb478fa525bc3586f2b Mon Sep 17 00:00:00 2001 From: "David M. Johnson" Date: Sat, 14 Mar 2020 18:05:47 -0400 Subject: [PATCH] [ROL-2161] Allow user emails up to 255 characters and add validation to User Edit page. --- app/src/main/resources/struts.xml | 3 + .../webapp/WEB-INF/jsps/admin/UserEdit.jsp | 59 +++++++++++++++---- .../webapp/WEB-INF/jsps/core/CreateWeblog.jsp | 3 - .../webapp/WEB-INF/jsps/core/Register.jsp | 4 +- 4 files changed, 53 insertions(+), 16 deletions(-) diff --git a/app/src/main/resources/struts.xml b/app/src/main/resources/struts.xml index 63d5bb346c..b52dbcc9fd 100644 --- a/app/src/main/resources/struts.xml +++ b/app/src/main/resources/struts.xml @@ -221,6 +221,9 @@ userAdmin.title.createNewUser .UserEdit .UserAdmin + + userAdmin + execute,firstSave,save diff --git a/app/src/main/webapp/WEB-INF/jsps/admin/UserEdit.jsp b/app/src/main/webapp/WEB-INF/jsps/admin/UserEdit.jsp index 9478e9c168..f9c65a6717 100644 --- a/app/src/main/webapp/WEB-INF/jsps/admin/UserEdit.jsp +++ b/app/src/main/webapp/WEB-INF/jsps/admin/UserEdit.jsp @@ -21,11 +21,9 @@ <%-- Titling, processing actions different between add and edit --%> userAdmin.subtitle.createNewUser - createUser userAdmin.subtitle.editUser - modifyUser

@@ -51,27 +49,27 @@ - - - - - @@ -82,7 +80,7 @@ tooltip="%{getText('userAdmin.tip.openIdUrl')}" /> - @@ -153,8 +151,49 @@

- - + + + + + + + +
+ + + + diff --git a/app/src/main/webapp/WEB-INF/jsps/core/CreateWeblog.jsp b/app/src/main/webapp/WEB-INF/jsps/core/CreateWeblog.jsp index 88ca6f8214..ebc9d344e6 100644 --- a/app/src/main/webapp/WEB-INF/jsps/core/CreateWeblog.jsp +++ b/app/src/main/webapp/WEB-INF/jsps/core/CreateWeblog.jsp @@ -143,6 +143,3 @@ - - - diff --git a/app/src/main/webapp/WEB-INF/jsps/core/Register.jsp b/app/src/main/webapp/WEB-INF/jsps/core/Register.jsp index 6f8fcef6a8..0667e3d131 100644 --- a/app/src/main/webapp/WEB-INF/jsps/core/Register.jsp +++ b/app/src/main/webapp/WEB-INF/jsps/core/Register.jsp @@ -42,8 +42,6 @@ - <%-- --%> - + name="bean.emailAddress" size="40" maxlength="255" />