Show the name of the logged in user during OAuth authorization

This commit is contained in:
Tom Hughes 2011-07-01 20:38:41 +01:00
parent 1a7e7b33b8
commit 67a50468c5
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
<h1>Authorize access to your account</h1> <h1>Authorize access to your account</h1>
<p><%= t('oauth.oauthorize.request_access', :app_name => link_to(@token.client_application.name,@token.client_application.url)) %></p> <p><%= 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)) %></p>
<% form_tag authorize_url do %> <% form_tag authorize_url do %>
<%= hidden_field_tag "oauth_token", @token.token %> <%= hidden_field_tag "oauth_token", @token.token %>
<%- if params[:oauth_callback] -%> <%- if params[:oauth_callback] -%>

View file

@ -1451,7 +1451,7 @@ en:
need_to_see_terms: "Your access to the API is temporarily suspended. Please log-in to the web interface to view the Contributor Terms. You do not need to agree, but you must view them." need_to_see_terms: "Your access to the API is temporarily suspended. Please log-in to the web interface to view the Contributor Terms. You do not need to agree, but you must view them."
oauth: oauth:
oauthorize: oauthorize:
request_access: "The application %{app_name} is requesting access to your account. Please check whether you would like the application to have the following capabilities. You may choose as many or as few as you like." request_access: "The application %{app_name} is requesting access to your account, %{user}. Please check whether you would like the application to have the following capabilities. You may choose as many or as few as you like."
allow_to: "Allow the client application to:" allow_to: "Allow the client application to:"
allow_read_prefs: "read your user preferences." allow_read_prefs: "read your user preferences."
allow_write_prefs: "modify your user preferences." allow_write_prefs: "modify your user preferences."