From 383241621c4e00d2c3fd5779a2e2226fe9b8d3d0 Mon Sep 17 00:00:00 2001 From: yep Date: Mon, 2 May 2011 14:53:22 +0200 Subject: [PATCH] increased invite link lifetime from 2 days to 7 days. --- app/models/invite.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/invite.rb b/app/models/invite.rb index aa14280a..88a71bde 100644 --- a/app/models/invite.rb +++ b/app/models/invite.rb @@ -28,7 +28,7 @@ class Invite < ActiveRecord::Base # Before validation, set token and expires_at. def before_validation self.token = Digest::SHA1.hexdigest(Time.now.to_s + rand(100).to_s) - self.expires_at = Time.now.advance(:days => 2) + self.expires_at = Time.now.advance(:days => 7) end # Sends an email to the invited user.