Skip to content

Commit

Permalink
Merge pull request #908 from KostyaSha/JENKINS-17332
Browse files Browse the repository at this point in the history
[JENKINS-17332] Allow sign up with username that exists because of SCM commit.
  • Loading branch information
mc1arke committed Aug 13, 2013
2 parents 4d8bfb5 + f633a44 commit b52e32e
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -310,7 +310,9 @@ private User createAccount(StaplerRequest req, StaplerResponse rsp, boolean self
else {
User user = User.get(si.username, false);
if (null != user)
si.errorMessage = Messages.HudsonPrivateSecurityRealm_CreateAccount_UserNameAlreadyTaken();
// Allow sign up. SCM people has no such property.
if (user.getProperty(Details.class) != null)
si.errorMessage = Messages.HudsonPrivateSecurityRealm_CreateAccount_UserNameAlreadyTaken();
}

if(si.fullname==null || si.fullname.length()==0)
Expand Down

0 comments on commit b52e32e

Please sign in to comment.