Ignore emails from inactive users

Fixes #2758
This commit is contained in:
Tom Hughes 2020-08-07 17:19:49 +01:00
parent 2e2bcc6991
commit f721f94d42

View file

@ -20,6 +20,7 @@ else
exit 0
end
exit 0 unless from.active?
exit 0 unless token == digest[0, 6]
exit 0 if date < 1.month.ago