From 9558857ddefdf2ce2cd7f0a821aa8cd5c75d50c9 Mon Sep 17 00:00:00 2001 From: John Lees-Miller Date: Sat, 27 Oct 2018 20:53:25 +0100 Subject: [PATCH] Handle missing recaptcha key --- app/views/guests/new.html.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/views/guests/new.html.erb b/app/views/guests/new.html.erb index 0096ec7..24d114f 100644 --- a/app/views/guests/new.html.erb +++ b/app/views/guests/new.html.erb @@ -21,7 +21,11 @@
+ <%- if ENV['RECAPTCHA_SECRET_KEY'].blank? -%> + <%= form.submit 'Continue', class: 'btn btn-primary', data: { disable_with: 'Sending...' } %> + <%- else -%> <%= invisible_recaptcha_tags text: 'Continue', class: 'btn btn-primary', data: { disable_with: 'Sending...' } %> + <%- end -%>
<% end %>