X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/dbd88d893f3c3fce9cafd666b94396988646d81f..d102c9aaf478a4bad52a72b1b72470ba35ba464e:/app/views/site/id.html.erb diff --git a/app/views/site/id.html.erb b/app/views/site/id.html.erb index a38a81534..f8d0f5858 100644 --- a/app/views/site/id.html.erb +++ b/app/views/site/id.html.erb @@ -9,8 +9,8 @@ <% data = {} -%> -<% if defined? ID_KEY %> -<% token = @user.access_token(ID_KEY) %> +<% if Settings.key?(:id_key) %> +<% token = current_user.access_token(Settings.id_key) %> <% data[:token] = token.token -%> <% data[:token_secret] = token.secret -%> <% data[:consumer_key] = token.client_application.key -%>