search for: get_auth_data

Displaying 2 results from an estimated 2 matches for "get_auth_data".

2007 Feb 21
1
setting session data from a post
...session[:user] => nil What I don''t understand is why I can''t access the attributes that are listed in the session object. You can see that the @attributes hash has the value 7 for the key :user. What am I doing wrong? thanks, Bryan def login_required username, passwd = get_auth_data self.current_user ||= User.authenticate(username, passwd) || :false if username && passwd return true if logged_in? && authorized? respond_to do |accepts| accepts.html do session[:return_to] = request.request_uri redirect_to :controller => ''account&...
2008 Jun 17
3
Help with error - uninitialized constant AuthenticatedSystem::Base64
...:/railsapps/Myapp Application Trace | Framework Trace | Full Trace vendor/rails/activesupport/lib/active_support/dependencies.rb:263:in `load_missing_constant'' vendor/rails/activesupport/lib/active_support/dependencies.rb:453:in `const_missing'' lib/authenticated_system.rb:126:in `get_auth_data'' lib/authenticated_system.rb:105:in `login_from_basic_auth'' lib/authenticated_system.rb:12:in `current_user'' lib/authenticated_system.rb:6:in `logged_in?'' lib/authenticated_system.rb:34:in `authorized?'' lib/authenticated_system.rb:52:in `login_required...