Skip to content

Commit

Permalink
minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
erik committed Jun 22, 2011
1 parent fdea687 commit a116db6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion app/controllers/api/users_controller.rb
Expand Up @@ -4,7 +4,7 @@ class Api::UsersController < ApplicationController

include OAuth::Controllers::ProviderController

before_filter :verify_oauth_signature
before_filter :verify_oauth_consumer_signature

def create

Expand All @@ -23,6 +23,11 @@ def create
else
arr[:success] = "Your account will be reviewed prior to approval. Spot.us will get back to you as soon as possible."
end

token = @current_client_application.create_from_request_token(user,params[:oauth_token],session[params[:oauth_token]],params[:oauth_verifier])

arr[:token] = { :token => token.token }

render :json => arr.to_json
return
else
Expand Down
2 changes: 1 addition & 1 deletion lib/oauth_connect.rb
Expand Up @@ -4,7 +4,7 @@ def oauth_client
end

def twitter_oauth_client
TwitterOAuth::Client.new(:consumer_key => TWITTER_CONSUMER_KEY,:consumer_secret => TWITTER_CONSUMER_SECRET)
TwitterOAuth::Client.new(:consumer_key => TWITTER_CONSUMER_KEY,:consumer_secret => TWITTER_CONSUMER_SECRET)
end


Expand Down

0 comments on commit a116db6

Please sign in to comment.