[Git][noosfero/noosfero][stable-1.7] Merge branch 'captcha_cache' into 'master'

Rodrigo Souto gitlab at mg.gitlab.com
Thu Mar 23 11:00:58 BRT 2017


Rodrigo Souto pushed to branch stable-1.7 at Noosfero / noosfero


Commits:
adad7c51 by Rodrigo Souto at 2017-03-23T14:00:53+00:00
Merge branch 'captcha_cache' into 'master'

Cleans session when after captcha is answered

See merge request !1139
- - - - -


1 changed file:

- app/controllers/public/account_controller.rb


Changes:

=====================================
app/controllers/public/account_controller.rb
=====================================
--- a/app/controllers/public/account_controller.rb
+++ b/app/controllers/public/account_controller.rb
@@ -116,6 +116,7 @@ class AccountController < ApplicationController
         else
           if session[:may_be_a_bot]
             return false unless verify_recaptcha :model=>@user, :message=>_('Captcha (the human test)')
+            session[:may_be_a_bot] = false
           end
           @user.community_to_join = session[:join]
           @user.signup!



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/adad7c51402a4160beea7ada8d76e37e12e07452
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170323/51f1cabe/attachment.html>


More information about the Noosfero-dev mailing list