summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDerf Null <derf@finalrewind.org>2023-06-09 07:55:59 +0200
committerDerf Null <derf@finalrewind.org>2023-06-09 07:55:59 +0200
commit0516344ac09214ca8dde0fe0d9fa7b7832213ef0 (patch)
treec71cc5b8e1ddbc7bba3df07874c9d825f6c5cc5c /lib
parent88ede7e3086b031de46c0ed0f2c7cd976e5c7c62 (diff)
login form: add hint about pages being only visibile after login
Diffstat (limited to 'lib')
-rwxr-xr-xlib/Travelynx.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm
index 0eeab09..0f602fe 100755
--- a/lib/Travelynx.pm
+++ b/lib/Travelynx.pm
@@ -2229,7 +2229,11 @@ sub startup {
if ( $self->is_user_authenticated ) {
return 1;
}
- $self->render( 'login', redirect_to => $self->req->url );
+ $self->render(
+ 'login',
+ redirect_to => $self->req->url,
+ from => 'auth_required'
+ );
return undef;
}
);