From 7689840966b2d0cf169f1627ddc7bb3ca8d45332 Mon Sep 17 00:00:00 2001 From: Jesse Farinacci Date: Wed, 8 Jun 2011 22:58:20 -0400 Subject: [PATCH] [FIXED JENKINS-9915] Make captcha support optional; remove LGPL jcaptcha This change is largely based on changes made by Winston Prakash for Hudson. The main details about his changes can be found here: http://issues.hudson-ci.org/browse/HUDSON-8844 I deviated a bit from his changes where it was appropriate (e.g. the description for allow-signup.html was just plain wrong). Also, there was a lot of collateral damage from formatting in his changeset, which I have factored out. I tested the basic functionality of this change and it seems to be OK. --- changelog.html | 3 + core/pom.xml | 43 ------------ core/src/main/java/hudson/Functions.java | 5 ++ .../security/HudsonPrivateSecurityRealm.java | 26 +++++++- .../java/hudson/security/SecurityRealm.java | 51 +++++++++------ .../security/captcha/CaptchaSupport.java | 65 +++++++++++++++++++ .../captcha/CaptchaSupportDescriptor.java | 37 +++++++++++ .../HudsonPrivateSecurityRealm/config.jelly | 26 ++++++-- .../HudsonPrivateSecurityRealm/signup.jelly | 4 +- .../security/private-realm/allow-signup.html | 7 +- 10 files changed, 192 insertions(+), 75 deletions(-) create mode 100644 core/src/main/java/hudson/security/captcha/CaptchaSupport.java create mode 100644 core/src/main/java/hudson/security/captcha/CaptchaSupportDescriptor.java diff --git a/changelog.html b/changelog.html index b351cb7610..267fcc3109 100644 --- a/changelog.html +++ b/changelog.html @@ -55,6 +55,9 @@ Upcoming changes \ No newline at end of file +

+ By default, Jenkins does not use captcha verification if the user creates an account by themself. + If you'd like to enable captcha verification, install a captcha support plugin, e.g. the Jenkins + JCaptcha Plugin. +