From 5185018da9d04ed66e3bdbf218ad6a21203ec44d Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 5 Jun 2014 18:57:07 +0200 Subject: [PATCH] Expire invitations before checking if the token is valid --- public/vroom.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/vroom.pl b/public/vroom.pl index 3639220..dc9a4f6 100755 --- a/public/vroom.pl +++ b/public/vroom.pl @@ -549,6 +549,8 @@ helper delete_invitations => sub { helper check_invite_token => sub { my $self = shift; my ($room,$token) = @_; + # Expire invitations before checking if it's valid + $self->delete_invitations; my $ret = 0; my $data = $self->get_room($room); if (!$data || !$token){