Forum: Ruby on Rails Restful_authentication log in from controller

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
6f1c8c3470d8146953219c3ea08d6878?d=identicon&s=25 PatRoy (Guest)
on 2007-07-16 21:06
(Received via mailing list)
Here's my problem. I'm using restful_authentication and recently added
subdomain logins e.g. ( 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.

6f1c8c3470d8146953219c3ea08d6878?d=identicon&s=25 PatRoy (Guest)
on 2007-07-16 21:15
(Received via mailing list)
Seems like the session[:user] gets cleared right after I redirect ?
This topic is locked and can not be replied to.