osbridge / openconferenceware

OpenConferenceWare is an open source web application for events and conferences. This customizable, general-purpose platform provides proposals, sessions, schedules, tracks and more.
http://groups.google.com/group/openconferenceware
Other
272 stars 56 forks source link

With multiple events, login and logout can take you to an event different from the one you were originally at #34

Open jejb opened 14 years ago

jejb commented 14 years ago

The current login/logout urls don't carry the event_id with them, which means that when you go to an event URL and log in, you can end up logged in to a different event (depending what the default is). Fix this by adjusting the routes to carry the event_id through both log in and logout.

Fix like this:

diff --git a/config/routes.rb b/config/routes.rb index d066faa..cc5135b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -48,8 +48,8 @@ ActionController::Routing::Routes.draw do |map| user.formatted_modify_favorites 'favorites/modify.:format', { :controller => 'user_favorites', :action => 'modify', :conditions => { :method => :put } } end map.open_id_complete '/browser_session', :controller => "browser_sessions", :action => "create", :requirements => { :method => :get }