]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/application.rb
Seperating message receiving off into 'inbox' function.
[rails.git] / app / controllers / application.rb
index 328148fe18daf712f478e7372bd1cf7caeaf5640..df94000be9e8307400587fc67d69ddb8915b52e1 100644 (file)
@@ -7,7 +7,7 @@ class ApplicationController < ActionController::Base
   end
 
   def require_user
-    redirect_to :controller => 'user', :action => 'login', :next_controller => controller_name, :next_action => action_name unless @user
+    redirect_to :controller => 'user', :action => 'login', :referer => request.request_uri unless @user
   end
 
   def authorize(realm='Web Password', errormessage="Couldn't authenticate you")