1
0
mirror of https://github.com/dani/vroom.git synced 2024-06-18 04:09:14 +02:00

Identify invitaions by session ID instead of session name

This commit is contained in:
Daniel Berteaud 2015-03-06 12:44:34 +01:00
parent 9a4c35de2d
commit cc735d7720

View File

@ -606,7 +606,7 @@ helper add_invitation => sub {
};
$sth->execute(
$data->{id},
$self->session('name'),
$self->session('id'),
$token,
$email
);
@ -1432,7 +1432,7 @@ any '/api' => sub {
$self->purge_invitations;
}
# Check if we got any invitation response to process
my $invitations = $self->get_invitation_list($self->session('name'));
my $invitations = $self->get_invitation_list($self->session('id'));
my $msg = '';
foreach my $invit (keys %{$invitations}){
$msg .= sprintf($self->l('INVITE_REPONSE_FROM_s'), $invitations->{$invit}->{email}) . "\n" ;