Expire invitations before checking if the token is valid

master
Daniel Berteaud 11 years ago
parent 2fdda24bd3
commit 5185018da9
  1. 2
      public/vroom.pl

@ -549,6 +549,8 @@ helper delete_invitations => sub {
helper check_invite_token => sub { helper check_invite_token => sub {
my $self = shift; my $self = shift;
my ($room,$token) = @_; my ($room,$token) = @_;
# Expire invitations before checking if it's valid
$self->delete_invitations;
my $ret = 0; my $ret = 0;
my $data = $self->get_room($room); my $data = $self->get_room($room);
if (!$data || !$token){ if (!$data || !$token){

Loading…
Cancel
Save