X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/3a1e7a67acc170731733d13172a5031ca68305e0..ba4a3e3ce96eddc9bbbcde1f255a80f65f49dc8f:/app/controllers/oauth_controller.rb diff --git a/app/controllers/oauth_controller.rb b/app/controllers/oauth_controller.rb index 856fdd790..7ae7938c3 100644 --- a/app/controllers/oauth_controller.rb +++ b/app/controllers/oauth_controller.rb @@ -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