X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/1c3a9ee62b7d1a0dc97d52b1a498be1339d49ebf..83821816359187fa2b877a29b7ab7d9f974c17b5:/app/controllers/oauth_controller.rb diff --git a/app/controllers/oauth_controller.rb b/app/controllers/oauth_controller.rb index 260f9ecfe..5c84be0cf 100644 --- a/app/controllers/oauth_controller.rb +++ b/app/controllers/oauth_controller.rb @@ -1,5 +1,5 @@ class OauthController < ApplicationController - layout 'site' + layout 'slim' before_filter :authorize_web, :only => [:oauthorize, :revoke] before_filter :set_locale, :only => [:oauthorize, :revoke] @@ -57,7 +57,7 @@ class OauthController < ApplicationController else redirect_url = @token.oob? ? @token.client_application.callback_url : @token.callback_url end - if redirect_url + if redirect_url and not redirect_url.empty? if @token.oauth10? redirect_to "#{redirect_url}?oauth_token=#{@token.token}" else