user status: pass token to journey on redirect
This commit is contained in:
parent
ae42028a71
commit
77ac39f389
1 changed files with 11 additions and 7 deletions
|
@ -521,17 +521,21 @@ sub user_status {
|
||||||
{
|
{
|
||||||
for my $candidate (
|
for my $candidate (
|
||||||
$self->journeys->get(
|
$self->journeys->get(
|
||||||
uid => $user->{id},
|
uid => $user->{id},
|
||||||
limit => 20,
|
sched_dep_ts => $ts,
|
||||||
|
limit => 1,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if ( $candidate->{sched_dep_ts} eq $ts ) {
|
my $token = $self->param('token');
|
||||||
|
if ($token) {
|
||||||
# TODO pass token
|
$self->redirect_to(
|
||||||
$self->redirect_to("/p/${name}/j/$candidate->{id}");
|
"/p/${name}/j/$candidate->{id}?token=${token}-${ts}");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
$self->redirect_to("/p/${name}/j/$candidate->{id}");
|
||||||
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
$self->render('not_found');
|
$self->render('not_found');
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue