mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 03:16:41 +08:00
FIX: reload the user record instead of fetching via email
This commit is contained in:
parent
e64ed9dbc1
commit
25b39b86ae
|
@ -75,7 +75,9 @@ class EmailToken < ActiveRecord::Base
|
|||
end
|
||||
|
||||
if user
|
||||
return User.find_by_email(user.email) if Invite.redeem_from_email(user.email).present?
|
||||
if Invite.redeem_from_email(user.email).present?
|
||||
return user.reload
|
||||
end
|
||||
user
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user