[FIXED JENKINS-11172] Don't throw exception on /signup when not possible

This commit is contained in:
Daniel Beck committed 2014-12-21 02:34:21 +01:00
1 parent aa7f0a938e
commit 277b17758e
2 files changed
+38 -1

No files matched your search

@@ -3560,7 +3560,11 @@ public class Jenkins extends AbstractCIBase implements DirectlyModifiableTopLeve
* Sign up for the user account.
*/
public void doSignup( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException {
req.getView(getSecurityRealm(), "signup.jelly").forward(req, rsp);
if (getSecurityRealm().allowsSignup()) {
req.getView(getSecurityRealm(), "signup.jelly").forward(req, rsp);
return;
}
req.getView(SecurityRealm.class, "signup.jelly").forward(req, rsp);
}
/**