mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-22 04:45:46 -04:00
EmailToken.active needs to check created_at too
This commit is contained in:
parent
c3ba7b9741
commit
fc33c63585
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ class EmailToken < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def self.active
|
||||
where(expired: false)
|
||||
where(expired: false).where('created_at > ?', valid_after)
|
||||
end
|
||||
|
||||
def self.generate_token
|
||||
|
|
Loading…
Reference in a new issue