From 19a8dfe1160692f93c91279f3bf9698d556215b1 Mon Sep 17 00:00:00 2001 From: Luka Murn Date: Tue, 11 Jul 2017 08:32:52 +0200 Subject: [PATCH] Extend confirmation period of emails to 7 days Closes SCI-1432. --- config/initializers/devise.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index c9372900d..28e701cf6 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -105,7 +105,7 @@ Devise.setup do |config| # The period the generated invitation token is valid, after # 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. - config.invite_for = 3.days + config.invite_for = 7.days # Number of invitations users can send. # - 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. # Default is nil, meaning there is no restriction on how long a user can take # 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 # initial account confirmation) to be applied. Requires additional unconfirmed_email