aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Reaction/UI/Widget/Field/Mutable/Password.pm
blob: 9f5e07a5e433957fd735675ed186852e8cfeda11 (plain) (blame)
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
35
36
37
38
39
40
41
42
43
44
45
46
package Reaction::UI::Widget::Field::Mutable::Password;

use Reaction::UI::WidgetClass;

use namespace::clean -except => [ qw(meta) ];
extends 'Reaction::UI::Widget::Field::Mutable';



around fragment widget {
  call_next;
  arg field_type => 'password';
  arg field_value => ''; # no sending password to user. really.
};

__PACKAGE__->meta->make_immutable;


1;

__END__;

=head1 NAME

Reaction::UI::Widget::Field::Mutable::Password - A password input field

=head1 DESCRIPTION

See L<Reaction::UI::Widget::Field::Mutable>. Creates a password type input field
and never sets the current value as the field's value.

=head1 FRAGMENTS

=head2 widget

Sets C<field_type> to C<password> and C<field_value> to an empty string.

=head1 AUTHORS

See L<Reaction::Class> for authors.

=head1 LICENSE

See L<Reaction::Class> for the license.

=cut