<%= @token.client_application.user.username %> CARTO

<%= @token.client_application.user.username %> wants to connect to your CARTO database. This means that <%= @token.client_application.user.username %> will be able to modify, create and delete fields from your database.

<%= form_tag authorize_url do %> <%= hidden_field_tag "oauth_token", @token.token %> <%- if params[:oauth_callback] -%> <%= hidden_field_tag "oauth_callback", params[:oauth_callback] %> <%- end -%>

<%= check_box_tag 'authorize' %>Authorize access

<%= submit_tag 'Allow connection', :class => "button green border sessions margin20" %> <% end %>