[Git][noosfero/noosfero][master] 2 commits: Cleans session when after captcha is answered
Rodrigo Souto
gitlab at mg.gitlab.com
Thu Mar 23 11:00:32 BRT 2017
Rodrigo Souto pushed to branch master at Noosfero / noosfero
Commits:
c3ecf058 by Gabriel Silva at 2017-03-20T00:52:17+00:00
Cleans session when after captcha is answered
Signed-off-by: Gabriel Silva <gabriel93.silva at gmail.com>
- - - - -
fe0c5f35 by Rodrigo Souto at 2017-03-23T14:00:23+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/compare/35b2fcaa7966ba58dd3696db9d2d63427d2d0058...fe0c5f35227a3aaea188b81f495b160764f57ef0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170323/37378e52/attachment-0001.html>
More information about the Noosfero-dev
mailing list