summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2023-03-03 15:05:43 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2023-03-03 15:05:43 +0100
commit2406fc4efeade10fa9836cf43dbc720d128a3ca1 (patch)
tree44286aacad42d6ce2ee18b3d9bff4518e3098195 /lib/Travelynx/Controller
parentb725d7d52cd631f1623012f167599dc08a8639c7 (diff)
token: do not expose full checkin timestamp
Diffstat (limited to 'lib/Travelynx/Controller')
-rwxr-xr-xlib/Travelynx/Controller/Traveling.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm
index fcc95ed..8cf1722 100755
--- a/lib/Travelynx/Controller/Traveling.pm
+++ b/lib/Travelynx/Controller/Traveling.pm
@@ -471,7 +471,7 @@ sub status_token_ok {
$ts2 //= $ts2_ext;
if ( $eva == $status->{dep_eva}
- and $ts == $status->{timestamp}->epoch
+ and $ts == $status->{timestamp}->epoch % 337
and $ts2 == $status->{sched_departure}->epoch )
{
return 1;
@@ -491,7 +491,7 @@ sub journey_token_ok {
$ts2 //= $ts2_ext;
if ( $eva == $journey->{from_eva}
- and $ts == $journey->{checkin_ts}
+ and $ts == $journey->{checkin_ts} % 337
and $ts2 == $journey->{sched_dep_ts} )
{
return 1;