aboutsummaryrefslogtreecommitdiff
path: root/www/gitlab
diff options
context:
space:
mode:
authorTorsten Zuehlsdorff <tz@FreeBSD.org>2017-11-20 10:08:21 +0000
committerTorsten Zuehlsdorff <tz@FreeBSD.org>2017-11-20 10:08:21 +0000
commitf4ecc7cd094b67404eb29edfc44d8d8a8aa1688b (patch)
tree3459b66d75a82a30751c017d9d2733237f0009a6 /www/gitlab
parent14415254b4c3f113e04f893bda616d18705e037e (diff)
downloadports-f4ecc7cd094b67404eb29edfc44d8d8a8aa1688b.tar.gz
ports-f4ecc7cd094b67404eb29edfc44d8d8a8aa1688b.zip
www/gitlab: Adjust recaptcha config
When using most current recaptcha version it was no longer possible to log in because of a change in configuration parameter. The patch fixes this issue. PR: 223738 Submitted by: otacilio.neto@bsd.com.br Reviewed by: swills
Notes
Notes: svn path=/head/; revision=454536
Diffstat (limited to 'www/gitlab')
-rw-r--r--www/gitlab/Makefile2
-rw-r--r--www/gitlab/files/patch-lib_gitlab_recaptcha.rb13
2 files changed, 14 insertions, 1 deletions
diff --git a/www/gitlab/Makefile b/www/gitlab/Makefile
index a36c99082f13..b15f89ea4102 100644
--- a/www/gitlab/Makefile
+++ b/www/gitlab/Makefile
@@ -4,7 +4,7 @@
PORTNAME= gitlab
PORTVERSION= 9.4.7
DISTVERSIONPREFIX= v
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= www devel
MAINTAINER= tz@FreeBSD.org
diff --git a/www/gitlab/files/patch-lib_gitlab_recaptcha.rb b/www/gitlab/files/patch-lib_gitlab_recaptcha.rb
new file mode 100644
index 000000000000..faf2bc53c559
--- /dev/null
+++ b/www/gitlab/files/patch-lib_gitlab_recaptcha.rb
@@ -0,0 +1,13 @@
+--- lib/gitlab/recaptcha.rb.orig 2017-11-18 21:06:32 UTC
++++ lib/gitlab/recaptcha.rb
+@@ -3,8 +3,8 @@ module Gitlab
+ def self.load_configurations!
+ if current_application_settings.recaptcha_enabled
+ ::Recaptcha.configure do |config|
+- config.public_key = current_application_settings.recaptcha_site_key
+- config.private_key = current_application_settings.recaptcha_private_key
++ config.site_key = current_application_settings.recaptcha_site_key
++ config.secret_key = current_application_settings.recaptcha_private_key
+ end
+
+ true