Seems like the session[:user] gets cleared right after I redirect ?
On Jul 16, 4:05 pm, PatRoy
<pat...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Here''s my problem. I''m using restful_authentication and
recently added
> subdomain logins e.g. (myaccount.domain.com) I have a page to create
> an account and an admin account in the same page. Both the account and
> admin are created. I can call self.current_user > User.authenticate ...
with no problem, I will get back the user. When
> it comes to redirecting to another action I have a
> before_filter :login_required. This is where it screws up. In that
> function there''s a get_auth_data... this function returns nil for
a
> username and password. Any ideas? This functions correctly if I login
> from a form calling the create action in my session controller.
>
> Help?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---