Permalink
Browse files

Merge pull request #798 from sonatype/NEXUS_5615

REVIEW: NEXUS-5615 update UI to indicate first/last name are required and add a last name t...
  • Loading branch information...
2 parents 28ab207 + f88db47 commit 03f7bd889935da5a1a1f13cce96f5ede1ae5407a @kellyrob99 kellyrob99 committed Apr 5, 2013
@@ -16,58 +16,59 @@
<!-- Default nexus security configuration -->
<!-- used as default config source -->
<security>
- <version>2.0.5</version>
- <users>
- <user>
- <id>admin</id>
- <firstName>Administrator</firstName>
- <!-- admin123 -->
- <password>f865b53623b121fd34ee5426c792e5c33af8c227</password>
- <status>active</status>
- <email>changeme@yourcompany.com</email>
- </user>
- <user>
- <id>deployment</id>
- <firstName>Deployment</firstName>
- <lastName>User</lastName>
- <!-- deployment123 -->
- <password>b2a0e378437817cebdf753d7dff3dd75483af9e0</password>
- <status>active</status>
- <email>changeme1@yourcompany.com</email>
- </user>
- <user>
- <id>anonymous</id>
- <firstName>Nexus</firstName>
- <lastName>Anonymous User</lastName>
- <!-- anonymous -->
- <password>0a92fab3230134cca6eadd9898325b9b2ae67998</password>
- <status>active</status>
- <email>changeme2@yourcompany.com</email>
- </user>
- </users>
- <userRoleMappings>
- <userRoleMapping>
- <userId>admin</userId>
- <source>default</source>
- <roles>
- <role>nx-admin</role>
- </roles>
- </userRoleMapping>
- <userRoleMapping>
- <userId>deployment</userId>
- <source>default</source>
- <roles>
- <role>nx-deployment</role>
- <role>repository-any-full</role>
- </roles>
- </userRoleMapping>
- <userRoleMapping>
- <userId>anonymous</userId>
- <source>default</source>
- <roles>
- <role>anonymous</role>
- <role>repository-any-read</role>
- </roles>
- </userRoleMapping>
- </userRoleMappings>
+ <version>2.0.5</version>
+ <users>
+ <user>
+ <id>admin</id>
+ <firstName>Administrator</firstName>
+ <lastName>User</lastName>
+ <!-- admin123 -->
+ <password>f865b53623b121fd34ee5426c792e5c33af8c227</password>
+ <status>active</status>
+ <email>changeme@yourcompany.com</email>
+ </user>
+ <user>
+ <id>deployment</id>
+ <firstName>Deployment</firstName>
+ <lastName>User</lastName>
+ <!-- deployment123 -->
+ <password>b2a0e378437817cebdf753d7dff3dd75483af9e0</password>
+ <status>active</status>
+ <email>changeme1@yourcompany.com</email>
+ </user>
+ <user>
+ <id>anonymous</id>
+ <firstName>Nexus</firstName>
+ <lastName>Anonymous User</lastName>
+ <!-- anonymous -->
+ <password>0a92fab3230134cca6eadd9898325b9b2ae67998</password>
+ <status>active</status>
+ <email>changeme2@yourcompany.com</email>
+ </user>
+ </users>
+ <userRoleMappings>
+ <userRoleMapping>
+ <userId>admin</userId>
+ <source>default</source>
+ <roles>
+ <role>nx-admin</role>
+ </roles>
+ </userRoleMapping>
+ <userRoleMapping>
+ <userId>deployment</userId>
+ <source>default</source>
+ <roles>
+ <role>nx-deployment</role>
+ <role>repository-any-full</role>
+ </roles>
+ </userRoleMapping>
+ <userRoleMapping>
+ <userId>anonymous</userId>
+ <source>default</source>
+ <roles>
+ <role>anonymous</role>
+ <role>repository-any-read</role>
+ </roles>
+ </userRoleMapping>
+ </userRoleMappings>
</security>
@@ -58,7 +58,8 @@ Nexus.profile.Summary = function(config) {
labelStyle : 'margin-left: 15px; width: 185px;',
helpText : ht.firstName,
name : 'firstName',
- allowBlank : true,
+ allowBlank : false,
+ itemCls : 'required-field',
width : this.FIELD_WIDTH,
disabled : isExternalUser,
validator : function(v) {
@@ -76,7 +77,8 @@ Nexus.profile.Summary = function(config) {
labelStyle : 'margin-left: 15px; width: 185px;',
helpText : ht.lastName,
name : 'lastName',
- allowBlank : true,
+ allowBlank : false,
+ itemCls : 'required-field',
width : this.FIELD_WIDTH,
disabled : isExternalUser,
validator : function(v) {
@@ -77,7 +77,8 @@ NX.define('Sonatype.repoServer.DefaultUserEditor', {
labelStyle : 'margin-left: 15px; width: 185px;',
helpText : ht.firstName,
name : 'firstName',
- allowBlank : true,
+ allowBlank : false,
+ itemCls : 'required-field',
htmlDecode : true,
width : this.COMBO_WIDTH,
validator : function(v) {
@@ -94,7 +95,8 @@ NX.define('Sonatype.repoServer.DefaultUserEditor', {
labelStyle : 'margin-left: 15px; width: 185px;',
helpText : ht.lastName,
name : 'lastName',
- allowBlank : true,
+ allowBlank : false,
+ itemCls : 'required-field',
htmlDecode : true,
width : this.COMBO_WIDTH,
validator : function(v) {

0 comments on commit 03f7bd8

Please sign in to comment.