fix timeout on unauthenticated access to account-specific pages

This commit is contained in:
Daniel Friesel 2019-03-09 00:13:51 +01:00
parent 8c4df88032
commit 7206292163

View file

@ -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 {