mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:17:08 +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
|
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user