search for: mycustomcclient

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

2006 Aug 13
3
Render nothing; go nowhere
...if request.post? user = User.authenticate(params[:name], params[:password]) if user session[:user_id] = user.id if session[:intended_action].nil? || session[:intended_controller].nil? if (@request.env[''HTTP_USER_AGENT''] == "MyCustomCClient") #did it come from my C++ program? #### <---- I need something here -----> #### else redirect_to(:action => "index") #deals with direct access to /login/login end else redirect_to :action =>...