diff options
Diffstat (limited to 'index.pl')
-rwxr-xr-x | index.pl | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1176,6 +1176,10 @@ get '/export.json' => sub { post '/logout' => sub { my ($self) = @_; + if ( $self->validation->csrf_protect->has_error('csrf_token') ) { + $self->render( 'login', invalid => 'csrf' ); + return; + } $self->logout; $self->redirect_to('/login'); }; |