From 99aa3a4a0d467fd83ba78096cf34113df797f0d8 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 30 Apr 2019 12:47:32 +0200 Subject: Implement deletion of inactive accounts --- lib/Travelynx/Controller/Account.pm | 2 ++ lib/Travelynx/Controller/Traveling.pm | 2 ++ 2 files changed, 4 insertions(+) (limited to 'lib/Travelynx/Controller') diff --git a/lib/Travelynx/Controller/Account.pm b/lib/Travelynx/Controller/Account.pm index 962a33a..dc3adb4 100644 --- a/lib/Travelynx/Controller/Account.pm +++ b/lib/Travelynx/Controller/Account.pm @@ -38,6 +38,7 @@ sub do_login { else { if ( $self->authenticate( $user, $password ) ) { $self->redirect_to( $self->req->param('redirect_to') // '/' ); + $self->mark_seen( $self->current_user->{id} ); } else { my $data = $self->get_user_password($user); @@ -535,6 +536,7 @@ sub account { my ($self) = @_; $self->render('account'); + $self->mark_seen( $self->current_user->{id} ); } sub json_export { diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm index ee8d27d..0a7250f 100755 --- a/lib/Travelynx/Controller/Traveling.pm +++ b/lib/Travelynx/Controller/Traveling.pm @@ -13,6 +13,7 @@ sub homepage { with_autocomplete => 1, with_geolocation => 1 ); + $self->mark_seen( $self->current_user->{id} ); } else { $self->render( 'landingpage', intro => 1 ); @@ -272,6 +273,7 @@ sub station { title => "travelynx: $status->{station_name}", ); } + $self->mark_seen( $self->current_user->{id} ); } sub redirect_to_station { -- cgit v1.2.3