master
Daniel Berteaud 9 years ago
parent dd55385f58
commit a9aa9fdbb2
  1. 11
      vroom.pl

@ -1555,10 +1555,19 @@ any [ qw(GET POST) ] => '/invitation/:token' => { token => '' } => sub {
my $response = $self->param('response') || 'decline'; my $response = $self->param('response') || 'decline';
my $message = $self->param('message') || ''; my $message = $self->param('message') || '';
if ($response !~ m/^(later|decline)$/ || !$self->respond_to_invitation($token, $response, $message)){ if ($response !~ m/^(later|decline)$/ || !$self->respond_to_invitation($token, $response, $message)){
return $self->render('error'); return $self->render('error',
err => 'ERROR_INVITATION_INVALID',
msg => $self->l('ERROR_INVITATION_INVALID'),
room => $room
);
} }
return $self->render('invitation_thanks'); return $self->render('invitation_thanks');
} }
return $self->render('error',
err => 'ERROR_OCCURRED',
msg => $self->l('ERROR_OCCURRED'),
room => $room
);
}; };
# Create a json script which contains localization # Create a json script which contains localization

Loading…
Cancel
Save