fix timeout on unauthenticated access to account-specific pages
This commit is contained in:
parent
8c4df88032
commit
7206292163
1 changed files with 5 additions and 1 deletions
6
index.pl
6
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 {
|
||||
|
|
Loading…
Reference in a new issue