mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-14 04:22:16 +00:00
[FIXED JENKINS-11172] Don't throw exception on /signup when not possible
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user