Make OAuth work again

This commit is contained in:
Tom Hughes 2011-11-16 21:06:47 +00:00
parent 87d38efbb0
commit 7b89dc6349
13 changed files with 109 additions and 109 deletions

View file

@ -1,5 +1,5 @@
<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), :user => link_to(@user.display_name, :controller => :user, :action => :view, :display_name => @user.display_name)) %></p>
<p><%= 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)) %></p>
<%= form_tag authorize_url do %>
<%= hidden_field_tag "oauth_token", @token.token %>
<%- if params[:oauth_callback] -%>

View file

@ -1,5 +1,5 @@
<h1>You have allowed this request</h1>
<% if @token.oob? %>
<% if @token.oob? and not @token.oauth10? %>
<p>The verification code is <%= @token.verifier %></p>
<% end %>