Skip to content

Commit

Permalink
[JENKINS-17332] Allow sign up with username that exist because of SCM…
Browse files Browse the repository at this point in the history
… people.
  • Loading branch information
KostyaSha committed Aug 13, 2013
1 parent 4d8bfb5 commit f633a44
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 f633a44

Please sign in to comment.