| 1 | package HTML::FormHandler::Field::Role::RequestToken; | ||
| 2 | # ABSTRACT: Role with Moose attributes necessary for the RequestToken field | ||
| 3 | 1 | $HTML::FormHandler::Field::Role::RequestToken::VERSION = '0.410000'; | |
| 4 | 1 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | has 'token_prefix' => ( | |
| 7 | is => 'rw', | ||
| 8 | default => '', | ||
| 9 | ); | ||
| 10 | |||
| 11 | 1 | has 'token_field_name' => ( | |
| 12 | is => 'rw', | ||
| 13 | default => '_token', | ||
| 14 | ); | ||
| 15 | |||
| 16 | before 'update_fields' => sub { | ||
| 17 | 1 | ▶ | my $self = shift; |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 18 | |||
| 19 | 1 | my $token_field = $self->field($self->token_field_name); | |
| 20 | 1 | $token_field->token_prefix($self->token_prefix); | |
| 21 | 1 | }; | |
| 22 | |||
| 23 | 1 | 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.410000 | ||
| 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 | ||