#714 ✓resolved
Ahenobarbi

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

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.

New-ticket Create new ticket

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

Referenced by

Pages