From 63154d9d38f57b998649563f7f1520b9e00082ba Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Fri, 14 Apr 2017 20:52:12 +0200 Subject: [PATCH] [MRM-1937] Prevent creation of wrong initial admin Disables the name field for the admin user, when the primary admin is created. --- .../archiva-webapp/src/main/webapp/js/redback/user.js | 1 + 1 file changed, 1 insertion(+) diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/redback/user.js b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/redback/user.js index 7464b5d31..4a8f0ccdc 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/redback/user.js +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/redback/user.js @@ -325,6 +325,7 @@ function(jquery,utils,i18n,jqueryValidate,ko,koSimpleGrid,purl) { } }); + $("#username").prop('disabled',true); // desactivate roles pill when adding user $("#edit_user_details_pills_headers").hide(); -- 2.39.5