FIX: better handling of invite links after they are redeemed

FIX: deprecate invite_passthrough_hours setting
This commit is contained in:
Arpit Jalan
2018-05-08 20:12:58 +05:30
parent edb97edf5f
commit 83245aa508
10 changed files with 56 additions and 58 deletions

View File

@ -8,12 +8,6 @@ InviteRedeemer = Struct.new(:invite, :username, :name, :password, :user_custom_f
end
end
# If `invite_passthrough_hours` is defined, allow them to re-use the invite link
# to login again.
if invite.redeemed_at && invite.redeemed_at >= SiteSetting.invite_passthrough_hours.hours.ago
return get_existing_user
end
nil
end