increased invite link lifetime from 2 days to 7 days.

This commit is contained in:
yep 2011-05-02 14:53:22 +02:00
parent 6c82d0e06a
commit 383241621c

View file

@ -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.