correct facebook logic

This commit is contained in:
Sam
2013-08-26 18:01:01 +10:00
parent ac905d4a08
commit 982b763216
2 changed files with 2 additions and 5 deletions

View File

@ -14,10 +14,6 @@ class Auth::Authenticator
# not required
end
def lookup_user(user_info, email)
user_info.try(:user) || User.where(email: email).first
end
# hook used for registering omniauth middleware,
# without this we can not authenticate
def register_middleware(omniauth)