Merge pull request #3175 from movilla/authocubbi_2
Better fix issue #3134
This commit is contained in:
commit
9533db7664
2 changed files with 3 additions and 3 deletions
|
|
@ -36,7 +36,7 @@ class AuthorizationsController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
if params[:commit] == t('authorizations.new.autorize')
|
if params['confirm']
|
||||||
grant_authorization_code(current_user)
|
grant_authorization_code(current_user)
|
||||||
else
|
else
|
||||||
deny_authorization_code
|
deny_authorization_code
|
||||||
|
|
|
||||||
|
|
@ -38,5 +38,5 @@
|
||||||
:url => oauth_authorize_path(params.slice(:redirect_uri, :client_id, :client_secret)) do |form|
|
:url => oauth_authorize_path(params.slice(:redirect_uri, :client_id, :client_secret)) do |form|
|
||||||
%br
|
%br
|
||||||
%p
|
%p
|
||||||
= form.submit "Fuck Yeah!", :value => t('.authorize'), :class => 'button'
|
= form.submit "Fuck Yeah!", :value => t('.authorize'), :class => 'button', :name => "confirm"
|
||||||
= form.submit "Hell No.", :value => t('.nope'), :class => 'button'
|
= form.submit "Hell No.", :value => t('.nope'), :class => 'button', :name => "cancel"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue