提交 f633a44f 编写于 作者: K Kanstantsin Shautsou

[JENKINS-17332] Allow sign up with username that exist because of SCM people.

上级 4d8bfb55
...@@ -310,7 +310,9 @@ public class HudsonPrivateSecurityRealm extends AbstractPasswordBasedSecurityRea ...@@ -310,7 +310,9 @@ public class HudsonPrivateSecurityRealm extends AbstractPasswordBasedSecurityRea
else { else {
User user = User.get(si.username, false); User user = User.get(si.username, false);
if (null != user) 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) if(si.fullname==null || si.fullname.length()==0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册