search for: find_authenticated_us

Displaying 1 result from an estimated 1 matches for "find_authenticated_us".

2008 Nov 05
3
Problems w/ before_filter getting ignored
...ed when the login method is called and then throws a "Redirect Loop" message in the brower Here''s the authentication module code: [code] module Authentication def store_location session[''return-to''] = request.request_uri end def login user = User.find_authenticated_user(params[:username], params[:password]) unless user.blank? || user.nil? session[:user] = user end redirect_to store_location end end and here''s the code I have so far in application.rb [/code] [code] class ApplicationController < ActionController::Base before_fi...