search for: login_from_sess

Displaying 4 results from an estimated 4 matches for "login_from_sess".

2008 Jan 30
2
Where can I get "authenticate_with_http_basic"?
...rrent_user with the user model if they''re logged in. def logged_in? current_user != :false end # Accesses the current user from the session. Set it to :false if login fails # so that future calls do not hit the database. def current_user @current_user ||= (login_from_session || login_from_basic_auth || login_from_cookie || :false) end # Store the given user id in the session. def current_user=(new_user) session[:user_id] = (new_user.nil? || new_user.is_a?(Symbol)) ? nil : new_user.id @current_user = new_user || :false end # Check if...
2008 Jul 12
1
Re: Re stful_authentication, Internet Explorer, and unwanted http basic dialog
...page. Any thoughts why? >>> >>> I''ve modified the following method of authenticated_system.rb, but >>> there''s no difference before or after. >>> >>> Before: >>> >>> def current_user >>> @current_user ||= (login_from_session || login_from_basic_auth || >>> login_from_cookie) unless @current_user == false >>> end >>> >>> After: >>> >>> def current_user >>> @current_user ||= login_from_session unless @current_user == >>> false >>> e...
2008 Jan 08
47
specs on private methods
How does a person test private methods? Is there a way to declare them as private, but retain any tests that were written during the initial development? Thanks. -- Posted via http://www.ruby-forum.com/.
2008 Apr 10
7
Facebooker and existing website?
Hi I am trying to use facebooker with an existing website that already has a model named ''User''. I therefore created a model called BkUser for use with facebooker. Also I have different controllers for all facebook requests. I am using acts_as_authenticated for handling login etc for my website and everytime a user is logged into my facebook app and tries to also browse the