/usr/share/perl5/HTML/FormFu/Plugin/RequestToken.pm is in libcatalyst-controller-html-formfu-perl 2.02-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | package HTML::FormFu::Plugin::RequestToken;
use strict;
our $VERSION = '2.02'; # VERSION
use Moose;
use MooseX::Attribute::FormFuChained;
extends 'HTML::FormFu::Plugin';
has context => ( is => 'rw', traits => ['FormFuChained'] );
has field_name => ( is => 'rw', traits => ['FormFuChained'] );
has session_key => ( is => 'rw', traits => ['FormFuChained'] );
has expiration_time => ( is => 'rw', traits => ['FormFuChained'] );
sub process {
my ($self) = @_;
return if $self->form->get_all_element( { name => $self->field_name } );
my $c = $self->form->stash->{'context'};
$self->form->elements( [ {
type => 'RequestToken',
name => $self->field_name,
expiration_time => $self->expiration_time,
context => $self->context,
session_key => $self->session_key
} ] );
return;
}
1;
|