login_required blocks signup attempt
Reported by Ahenobarbi | April 30th, 2010 @ 09:05 PM
Description:
If you add
before_filter :login_required
to ApplicationController. Attempt to signup will fail.
Reproducible: always.
I think the reason is hobo UserController isn't skipping
login_required before_filter on do_singup.
In lib/hobo/user_controller.rb
skip_before_filter :login_required, :only => [:login, :signup, :forgot_password, :reset_password, :do_reset_password,
:accept_invitation, :do_accept_invitation]
should be replaced with
skip_before_filter :login_required, :only => [:login, :signup, :do_signup, :forgot_password, :reset_password,
:do_reset_password, :accept_invitation, :do_accept_invitation]
Relevant server log part:
Processing UsersController#do_signup (for 127.0.0.1 at
2010-04-30 21:51:32) [POST]
Parameters: {"page_path"=>"users/signup",
"action"=>"do_signup",
"authenticity_token"=>"njGbDosHSlw6KbufjcuM4Bjo2DnalRSO/hoDShlCiUM=",
"controller"=>"users", "user"=>{"name"=>"dd",
"password_confirmation"=>"[FILTERED]",
"email_address"=>"dd@ddd.org",
"password"=>"[FILTERED]"}} Redirected to http://127.0.0.1:3000/login
Filter chain halted as [:login_required]
rendered_or_redirected.
Comments and changes to this ticket
-
Matt Jones September 14th, 2011 @ 10:29 PM
- Milestone order changed from 0 to 0
(from [b5ee0fe15933488afec227e05aac21d4e412e26e]) [#714] don't make users log in to sign up https://github.com/tablatom/hobo/commit/b5ee0fe15933488afec227e05aa...
-
Matt Jones September 14th, 2011 @ 10:29 PM
- State changed from new to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
People watching this ticket
Tags
Referenced by
- 714 login_required blocks signup attempt (from [b5ee0fe15933488afec227e05aac21d4e412e26e]) [#714] ...