]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/oauth_controller.rb
Improve zoom level selection when invoking Potlatch on an object
[rails.git] / app / controllers / oauth_controller.rb
index 856fdd79032869d88c6497e2068cec58fb5811c2..7ae7938c37c1e74d288cabdd590ae6da74ebe41d 100644 (file)
@@ -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