increased invite link lifetime from 2 days to 7 days.
This commit is contained in:
parent
6c82d0e06a
commit
383241621c
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue