]> git.openstreetmap.org Git - rails.git/commitdiff
Remove debugging.
authorTom Hughes <tom@compton.nu>
Wed, 19 Aug 2009 08:04:42 +0000 (08:04 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 19 Aug 2009 08:04:42 +0000 (08:04 +0000)
app/controllers/oauth_controller.rb

index 8af8af5e7bd38302778f4a5d64d85d46e8ecbcdf..98075b8f810d40bf9cdd6faf8012095e4d0aed3f 100644 (file)
@@ -12,13 +12,11 @@ class OauthController < ApplicationController
   def request_token
     @token = current_client_application.create_request_token
 
   def request_token
     @token = current_client_application.create_request_token
 
-    logger.info "in REQUEST TOKEN"
     if @token
       logger.info "request token params: #{params.inspect}"
       # request tokens indicate what permissions the client *wants*, not
       # necessarily the same as those which the user allows.
       current_client_application.permissions.each do |pref|
     if @token
       logger.info "request token params: #{params.inspect}"
       # request tokens indicate what permissions the client *wants*, not
       # necessarily the same as those which the user allows.
       current_client_application.permissions.each do |pref|
-        logger.info "PARAMS found #{pref}"
         @token.write_attribute(pref, true)
       end
       @token.save!
         @token.write_attribute(pref, true)
       end
       @token.save!
@@ -45,7 +43,6 @@ class OauthController < ApplicationController
         any_auth = false
         @token.client_application.permissions.each do |pref|
           if params[pref]
         any_auth = false
         @token.client_application.permissions.each do |pref|
           if params[pref]
-            logger.info "OAUTHORIZE PARAMS found #{pref}"
             @token.write_attribute(pref, true)
             any_auth ||= true
           else
             @token.write_attribute(pref, true)
             any_auth ||= true
           else
@@ -77,7 +74,6 @@ class OauthController < ApplicationController
       @token.invalidate!
       flash[:notice] = t('oauth.revoke.flash', :application => @token.client_application.name)
     end
       @token.invalidate!
       flash[:notice] = t('oauth.revoke.flash', :application => @token.client_application.name)
     end
-    logger.info "about to redirect"
     redirect_to :controller => 'oauth_clients', :action => 'index'
   end
 end
     redirect_to :controller => 'oauth_clients', :action => 'index'
   end
 end