Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

REVIEW: NEXUS-5615 update UI to indicate first/last name are required and add a last name t... #798

Merged
merged 2 commits into from

3 participants

@kellyrob99
Owner

...o default admin user for new deployments

https://issues.sonatype.org/browse/NEXUS-5615

@kellyrob99 kellyrob99 update UI to indicate first/last name are required and add a last nam…
…e to default admin user for new deployments

NEXUS-5615
ebd6066
@jdillon
Owner

Please cross link github and jira... so its easier to move between them.

https://issues.sonatype.org/browse/NEXUS-5615

...ore/src/main/resources/META-INF/security/security.xml
@@ -21,6 +21,7 @@
<user>
<id>admin</id>
<firstName>Administrator</firstName>
+ <lastName>Nexus</lastName>
@jdillon Owner
jdillon added a note

probably should be:

<lastName>User</lastName>

... which matches the others closer.

indent is also off but so is this entire file :-\

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@jdillon
Owner

This doesn't actually fix existing installations... but not sure we care too much about those, since hopefully they have deleted this user ;-)

@kellyrob99
Owner

I considered updating existing installations, but since there's no functionality that is broken as-s it seemed overkill for such a small issue.
If anyone feels strongly about that, I'd welcome the opportunity to start learning about how to upgrade the configuration xml files properly.

@jdillon
Owner

@kellyrob99 its not worth the trouble don't bother.

@adreghiciu
Owner

+1

@jdillon
Owner

+1

@kellyrob99 kellyrob99 merged commit 03f7bd8 into master
@kellyrob99 kellyrob99 deleted the NEXUS_5615 branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 3, 2013
  1. @kellyrob99

    update UI to indicate first/last name are required and add a last nam…

    kellyrob99 authored
    …e to default admin user for new deployments
    
    NEXUS-5615
Commits on Apr 4, 2013
  1. @kellyrob99
This page is out of date. Refresh to see the latest.
View
109 nexus-core/src/main/resources/META-INF/security/security.xml
@@ -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>
View
6 nexus-webapp/src/main/webapp/js/Nexus/profile/Summary.js
@@ -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) {
View
6 nexus-webapp/src/main/webapp/js/Sonatype/repoServer/DefaultUserEditor.js
@@ -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) {
Something went wrong with that request. Please try again.