mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 05:22:22 +00:00
[JENKINS-17332] Allow sign up with username that exist because of SCM people.
This commit is contained in:
1 parent
4d8bfb5538
commit
f633a44ffb
1 file changed
+3
-1
@@ -310,7 +310,9 @@ public class HudsonPrivateSecurityRealm extends AbstractPasswordBasedSecurityRea
|
||||
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)
|
||||
|
||||
Reference in new issue
Block a user