]> 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 52aeff3cbe4c79db9e1539d0772ba72a8f24ed0c..df94000be9e8307400587fc67d69ddb8915b52e1 100644 (file)
@@ -7,7 +7,7 @@ class ApplicationController < ActionController::Base
   end
 
   def require_user
-    redirect_to :controller => 'user', :action => 'login' 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")