Skip to content

Commit

Permalink
Fix: 新浪帐号绑定修正
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed Apr 3, 2011
1 parent a133ac5 commit 6683cf1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ gem 'memcache-client'
gem 'omniauth', '0.2.0.beta3'
gem "oa-openid", '0.2.0.beta3'
# gem "omniauth_china", :path => "/Users/jason/work/omniauth_china"
gem "omniauth_china", :git => "git://github.com/huacnlee/omniauth_china.git"
gem "omniauth_china", "0.0.6"

# 后台列表
# gem 'wice_grid', '3.0.0.pre1'
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8
class UsersController < ApplicationController
skip_before_filter :verify_authenticity_token, :only => [:auth_callback]
before_filter :init_user
before_filter :init_user, :except => [:auth_callback]

def init_user
@user = User.find_by_slug(params[:id])
Expand Down

0 comments on commit 6683cf1

Please sign in to comment.