]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1937] Prevent creation of wrong initial admin
authorMartin Stockhammer <martin_s@apache.org>
Fri, 14 Apr 2017 18:52:12 +0000 (20:52 +0200)
committerMartin Stockhammer <martin_s@apache.org>
Fri, 14 Apr 2017 18:52:12 +0000 (20:52 +0200)
Disables the name field for the admin user, when the primary admin
is created.

archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/redback/user.js

index 7464b5d311a6d0bcec72b13728693e0d4de110bf..4a8f0ccdc73481ebe8171c4fd8b8138c45c9ef49 100644 (file)
@@ -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();