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

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

上级 4d8bfb55
......@@ -310,6 +310,8 @@ public class HudsonPrivateSecurityRealm extends AbstractPasswordBasedSecurityRea
else {
User user = User.get(si.username, false);
if (null != user)
// Allow sign up. SCM people has no such property.
if (user.getProperty(Details.class) != null)
si.errorMessage = Messages.HudsonPrivateSecurityRealm_CreateAccount_UserNameAlreadyTaken();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册