From adf579d3a12c944e874dcc96c7d5ebbbc0d47b1f Mon Sep 17 00:00:00 2001 From: f Date: Mon, 11 Jan 2021 12:20:48 -0300 Subject: [PATCH] cuando las invitaciones vencen les usuaries no se pueden volver a loguear --- 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 4980a93..ac56a2a 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -140,7 +140,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 = 2.weeks + config.invite_for = 0 # Number of invitations users can send. # - If invitation_limit is nil, there is no limit for invitations, @@ -166,7 +166,7 @@ Devise.setup do |config| # Resend invitation if user with invited status is invited again # Default: true - # config.resend_invitation = false + config.resend_invitation = true # The class name of the inviting model. If this is nil, # the #invited_by association is declared to be polymorphic.