Better fix issue #3134

This commit is contained in:
Movilla 2012-04-20 16:07:31 +02:00
parent 5f839aa26f
commit 7b203e3636
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"