]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/site_controller.rb
Only Potlatch 1 needs a token to be created
[rails.git] / app / controllers / site_controller.rb
index d08f34a0a29b0a2689e759c327b227896419f9a7..e6d09f18d787b3b1d436bda46ac21f76cb6defb1 100644 (file)
@@ -37,8 +37,6 @@ class SiteController < ApplicationController
     if editor == "josm"
       render :action => :index
     else
     if editor == "josm"
       render :action => :index
     else
-      session[:token] = @user.tokens.create.token unless session[:token] and UserToken.find_by_token(session[:token])
-
       # Decide on a lat lon to initialise potlatch with. Various ways of doing this
       if params['lon'] and params['lat']
         @lon = params['lon'].to_f
       # Decide on a lat lon to initialise potlatch with. Various ways of doing this
       if params['lon'] and params['lat']
         @lon = params['lon'].to_f