提交 b52e32ed 编写于 作者: M Michael Clarke

Merge pull request #908 from KostyaSha/JENKINS-17332

[JENKINS-17332] Allow sign up with username that exists because of SCM commit.
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册