Merge pull request #3175 from movilla/authocubbi_2

Better fix issue #3134
This commit is contained in:
Maxwell Salzberg 2012-04-20 09:08:21 -07:00
commit 9533db7664
2 changed files with 3 additions and 3 deletions

View file

@ -36,7 +36,7 @@ class AuthorizationsController < ApplicationController
end
def create
if params[:commit] == t('authorizations.new.autorize')
if params['confirm']
grant_authorization_code(current_user)
else
deny_authorization_code

View file

@ -38,5 +38,5 @@
:url => oauth_authorize_path(params.slice(:redirect_uri, :client_id, :client_secret)) do |form|
%br
%p
= form.submit "Fuck Yeah!", :value => t('.authorize'), :class => 'button'
= form.submit "Hell No.", :value => t('.nope'), :class => 'button'
= form.submit "Fuck Yeah!", :value => t('.authorize'), :class => 'button', :name => "confirm"
= form.submit "Hell No.", :value => t('.nope'), :class => 'button', :name => "cancel"