mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: reload the user record instead of fetching via email
This commit is contained in:
@@ -75,7 +75,9 @@ class EmailToken < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
if user
|
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
|
user
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user