]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/application_controller.rb
Merge pull request #4496 from tomhughes/disabled-auth-error
[rails.git] / app / controllers / application_controller.rb
index ddc6d8ab28f011d1fe6543d502ecc43666f395d1..5d69a5fc8c1fb54c16f7b382b059096bce4122ad 100644 (file)
@@ -44,8 +44,6 @@ class ApplicationController < ActionController::Base
           redirect_to :controller => "users", :action => "terms", :referer => request.fullpath
         end
       end
-    elsif session[:token]
-      session[:user] = current_user.id if self.current_user = User.authenticate(:token => session[:token])
     end
 
     session[:fingerprint] = current_user.fingerprint if current_user && session[:fingerprint].nil?