Better fix issue #3134
This commit is contained in:
parent
5f839aa26f
commit
7b203e3636
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue