Merge pull request #739 from Ducz0r/lm-sci-1432

Extend confirmation period of emails to 7 days [SCI-1432]
This commit is contained in:
Luka Murn 2017-07-11 10:57:16 +02:00 committed by GitHub
commit 1dc3e49367

View file

@ -105,7 +105,7 @@ Devise.setup do |config|
# The period the generated invitation token is valid, after # The period the generated invitation token is valid, after
# this period, the invited resource won't be able to accept the invitation. # this period, the invited resource won't be able to accept the invitation.
# When invite_for is 0 (the default), the invitation won't expire. # When invite_for is 0 (the default), the invitation won't expire.
config.invite_for = 3.days config.invite_for = 7.days
# Number of invitations users can send. # Number of invitations users can send.
# - If invitation_limit is nil, there is no limit for invitations, users can # - If invitation_limit is nil, there is no limit for invitations, users can
@ -163,7 +163,7 @@ Devise.setup do |config|
# their account can't be confirmed with the token any more. # their account can't be confirmed with the token any more.
# Default is nil, meaning there is no restriction on how long a user can take # Default is nil, meaning there is no restriction on how long a user can take
# before confirming their account. # before confirming their account.
config.confirm_within = 3.days config.confirm_within = 7.days
# If true, requires any email changes to be confirmed (exactly the same way as # If true, requires any email changes to be confirmed (exactly the same way as
# initial account confirmation) to be applied. Requires additional unconfirmed_email # initial account confirmation) to be applied. Requires additional unconfirmed_email