From 7c2e164dff313a04c1cb8d8a84b0420e33090bfe Mon Sep 17 00:00:00 2001 From: John Pinto Date: Wed, 18 Aug 2021 09:42:56 +0100 Subject: [PATCH] Issue #403 - Added Recaptcha to new password page. --- app/views/devise/passwords/edit.html.erb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/views/devise/passwords/edit.html.erb b/app/views/devise/passwords/edit.html.erb index ea8f0e9950..b658a735bd 100644 --- a/app/views/devise/passwords/edit.html.erb +++ b/app/views/devise/passwords/edit.html.erb @@ -24,10 +24,17 @@ <%= _('Show passwords') %> + + <% if Rails.configuration.x.recaptcha.enabled %> +
+ <%= label_tag(nil, _('Security check')) %> + <%= recaptcha_tags %> +
+ <% end %> <%= f.button(_('Save'), class: "btn btn-default", type: "submit") %> <%= render "devise/shared/links" %> <% end %> - +