51 |
|
|
52 |
if ( $sth->rows == 1 ) { |
if ( $sth->rows == 1 ) { |
53 |
|
|
|
$sth = $dbh->prepare(qq{ |
|
|
select |
|
|
ime||' '||prezime, |
|
|
_seat_number, |
|
|
email |
|
|
from reservation |
|
|
where |
|
|
_confirmed is true |
|
|
-- and _seat_number is not null |
|
|
and md5(id||email) = ? |
|
|
}); |
|
|
|
|
|
$sth->execute( $self->token ); |
|
|
|
|
54 |
die "can't find account associated with ", $self->token unless $sth->rows == 1; |
die "can't find account associated with ", $self->token unless $sth->rows == 1; |
55 |
|
|
56 |
my @reservation = $sth->fetchrow_array; |
return $self->seat_confirmation_message( token => $self->token ); |
|
push @reservation, |
|
|
$self->url_for( 'Confirmation/cancel_as_markup?token=' . $self->token ); |
|
|
|
|
|
return $self->seat_confirmation_message( @reservation ); |
|
57 |
|
|
58 |
} else { |
} else { |
59 |
die "Problem with confirmation.\n"; |
die "Problem with confirmation.\n"; |