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

@ -171,6 +171,12 @@ en:
invite:
not_found: "Your invite token is invalid. Please contact the site's administrator."
not_found_template: |
<p>Your invite to <a href="%{base_url}">%{site_name}</a> has already been redeemed.</p>
<p>If you remember your password you can <a href="%{base_url}/login">Login</a>.</p>
<p>Otherwise please <a href="%{base_url}/password-reset">Reset Password</a>.</p>
user_exists: "There's no need to invite <b>%{email}</b>, they <a href='/u/%{username}/summary'>already have an account!</a>"
bulk_invite:
@ -1204,7 +1210,6 @@ en:
new_version_emails: "Send an email to the contact_email address when a new version of Discourse is available."
invite_expiry_days: "How long user invitation keys are valid, in days"
invite_passthrough_hours: "How long a user can use a previously redeemed invitation key to log in, in hours"
invite_only: "Public registration is disabled, all new users must be explicitly invited by staff."

View File

@ -408,7 +408,6 @@ users:
default: true
invite_expiry_days:
default: 30
invite_passthrough_hours: 0
invites_per_page:
client: true
default: 40