From: Martin Stockhammer Date: Fri, 14 Apr 2017 18:52:12 +0000 (+0200) Subject: [MRM-1937] Prevent creation of wrong initial admin X-Git-Tag: archiva-2.2.2~11 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=63154d9d38f57b998649563f7f1520b9e00082ba;p=archiva.git [MRM-1937] Prevent creation of wrong initial admin Disables the name field for the admin user, when the primary admin is created. --- 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();