X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/dc2a2c8ebd1a11e4a64555fda22c6859a51defff..d02ea8a1332fc7c32749ab479d68d44e2e76cdfa:/app/controllers/oauth_controller.rb diff --git a/app/controllers/oauth_controller.rb b/app/controllers/oauth_controller.rb index ed7853d6c..88691f862 100644 --- a/app/controllers/oauth_controller.rb +++ b/app/controllers/oauth_controller.rb @@ -38,11 +38,6 @@ class OauthController < ApplicationController protected def oauth1_authorize - unless @token - render :action => "authorize_failure" - return - end - if @token.invalidated? @message = t "oauth.oauthorize_failure.invalid" render :action => "authorize_failure" @@ -64,7 +59,7 @@ class OauthController < ApplicationController "oauth_token=#{@token.token}" else @redirect_url.query + - "&oauth_token=#{@token.token}" + "&oauth_token=#{@token.token}" end unless @token.oauth10?