From 7206292163b122ef61946e748e71be5949723881 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 9 Mar 2019 00:13:51 +0100 Subject: fix timeout on unauthenticated access to account-specific pages --- index.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.pl b/index.pl index 78719f5..dfc3358 100755 --- a/index.pl +++ b/index.pl @@ -1162,7 +1162,11 @@ post '/action' => sub { under sub { my ($self) = @_; - return $self->is_user_authenticated; + if ( $self->is_user_authenticated ) { + return 1; + } + $self->render('login'); + return undef; }; get '/account' => sub { -- cgit v1.2.3