fix invalid token error

This commit is contained in:
Josh 2017-06-06 15:46:57 -04:00
parent 1ddc16af86
commit ad60c95118
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ class User < ApplicationRecord
user.username = self.send("#{auth_hash['provider']}_username", auth_hash) rescue nil user.username = self.send("#{auth_hash['provider']}_username", auth_hash) rescue nil
user.email = self.send("#{auth_hash['provider']}_email", auth_hash) rescue nil user.email = self.send("#{auth_hash['provider']}_email", auth_hash) rescue nil
user.name = auth_hash['info']['name'] user.name = auth_hash['info']['name']
user.token = auth_hash['credentials']['token'] user.token = auth_hash['credentials']['token'] rescue nil
user.save! user.save!
user user
end end