X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/87d38efbb072a99bea2bbeaac11d6fa37dd0d9ee..7b89dc63496de0b6131a93c57d283ebb4490804b:/app/views/oauth/authorize.html.erb diff --git a/app/views/oauth/authorize.html.erb b/app/views/oauth/authorize.html.erb new file mode 100644 index 000000000..eaf43f9d1 --- /dev/null +++ b/app/views/oauth/authorize.html.erb @@ -0,0 +1,15 @@ +

Authorize access to your account

+

<%= raw t('oauth.oauthorize.request_access', :app_name => link_to(@token.client_application.name, @token.client_application.url), :user => link_to(@user.display_name, :controller => :user, :action => :view, :display_name => @user.display_name)) %>

+<%= 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 -%> +

<%= t 'oauth.oauthorize.allow_to' %>

+ +

<%= submit_tag %>

+<% end %>