Debian Codegraph @

lib/HTML/FormHandler/Field/Role/RequestToken.pm

raw
1 package HTML::FormHandler::Field::Role::RequestToken;
2 # ABSTRACT: Role with Moose attributes necessary for the RequestToken field
3 $HTML::FormHandler::Field::Role::RequestToken::VERSION = '0.410002';
4 use Moose::Role;
5
6 has 'token_prefix' => (
7 is => 'rw',
8 default => '',
9 );
10
11 has 'token_field_name' => (
12 is => 'rw',
13 default => '_token',
14 );
15
16 before 'update_fields' => sub {
17 my $self = shift;
18
19 my $token_field = $self->field($self->token_field_name);
20 $token_field->token_prefix($self->token_prefix);
21 };
22
23 1;
24
25 __END__
26
27 =pod
28
29 =encoding UTF-8
30
31 =head1 NAME
32
33 HTML::FormHandler::Field::Role::RequestToken - Role with Moose attributes necessary for the RequestToken field
34
35 =head1 VERSION
36
37 version 0.410002
38
39 =head1 AUTHOR
40
41 FormHandler Contributors - see HTML::FormHandler
42
43 =head1 COPYRIGHT AND LICENSE
44
45 This software is copyright (c) 2017 by Gerda Shank.
46
47 This is free software; you can redistribute it and/or modify it under
48 the same terms as the Perl 5 programming language system itself.
49
50 =cut