X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cd66a5db99fda4920ed559ec71163d5d01ba1f4a..6cb69b5e4be820b3f30d0f9eef9bbeb39fab5231:/app/views/site/_potlatch.html.erb diff --git a/app/views/site/_potlatch.html.erb b/app/views/site/_potlatch.html.erb index c255cef91..18e1c4cce 100644 --- a/app/views/site/_potlatch.html.erb +++ b/app/views/site/_potlatch.html.erb @@ -3,9 +3,12 @@ <%= javascript_include_tag 'swfobject.js' %> + +<% session[:token] = @user.tokens.create.token unless session[:token] and UserToken.find_by_token(session[:token]) %> +