X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/16030e03817e2df25e087c966da33edc78d7d23e..2e202460e606e079fe422eb477c863e95e532687:/app/views/site/edit.html.erb diff --git a/app/views/site/edit.html.erb b/app/views/site/edit.html.erb index 3565b0468..779abd352 100644 --- a/app/views/site/edit.html.erb +++ b/app/views/site/edit.html.erb @@ -20,7 +20,7 @@ <%= render :partial => 'search' %> <% -session[:token] = @user.tokens.create.token unless session[:token] +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']