mirror of
https://github.com/dani/vroom.git
synced 2024-06-26 17:43:29 +02:00
Identify invitaions by session ID instead of session name
This commit is contained in:
parent
9a4c35de2d
commit
cc735d7720
4
vroom.pl
4
vroom.pl
|
@ -606,7 +606,7 @@ helper add_invitation => sub {
|
||||||
};
|
};
|
||||||
$sth->execute(
|
$sth->execute(
|
||||||
$data->{id},
|
$data->{id},
|
||||||
$self->session('name'),
|
$self->session('id'),
|
||||||
$token,
|
$token,
|
||||||
$email
|
$email
|
||||||
);
|
);
|
||||||
|
@ -1432,7 +1432,7 @@ any '/api' => sub {
|
||||||
$self->purge_invitations;
|
$self->purge_invitations;
|
||||||
}
|
}
|
||||||
# Check if we got any invitation response to process
|
# 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 = '';
|
my $msg = '';
|
||||||
foreach my $invit (keys %{$invitations}){
|
foreach my $invit (keys %{$invitations}){
|
||||||
$msg .= sprintf($self->l('INVITE_REPONSE_FROM_s'), $invitations->{$invit}->{email}) . "\n" ;
|
$msg .= sprintf($self->l('INVITE_REPONSE_FROM_s'), $invitations->{$invit}->{email}) . "\n" ;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user