X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3a1e7a67acc170731733d13172a5031ca68305e0..eab2eeaa47b2aa8c7f52371f9bfdd60711a41fb6:/app/controllers/oauth_controller.rb?ds=sidebyside diff --git a/app/controllers/oauth_controller.rb b/app/controllers/oauth_controller.rb index 856fdd790..c7251f0a7 100644 --- a/app/controllers/oauth_controller.rb +++ b/app/controllers/oauth_controller.rb @@ -3,7 +3,7 @@ require 'oauth/controllers/provider_controller' class OauthController < ApplicationController include OAuth::Controllers::ProviderController - layout 'slim' + layout 'site' def login_required authorize_web @@ -67,10 +67,12 @@ protected end else @token.invalidate! + @message = t("oauth.oauthorize_failure.denied", :app_name => @token.client_application.name) render :action => "authorize_failure" end end else + @message = t "oauth.oauthorize_failure.invalid" render :action => "authorize_failure" end end