| Form-Factory documentation | Contained in the Form-Factory distribution. |
Form::Factory::Control::Password - the password control
version 0.020
has_control new_password => (
control => 'password',
);
head1 DESCRIPTION
This is a password control. It is similar to a text control, but does not stash anything and has no default value.
We have a current value if it is defined and has a non-zero string length.
Andrew Sterling Hanenkamp <hanenkamp@cpan.org>
Copyright 2009 Qubling Software LLC.
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
| Form-Factory documentation | Contained in the Form-Factory distribution. |
package Form::Factory::Control::Password; BEGIN { $Form::Factory::Control::Password::VERSION = '0.020'; } use Moose; with qw( Form::Factory::Control Form::Factory::Control::Role::Labeled Form::Factory::Control::Role::ScalarValue );
has '+value' => ( isa => 'Str', ); has '+default_value' => ( isa => 'Str', default => '', );
around has_current_value => sub { my $next = shift; my $self = shift; return ($self->has_value || $self->has_default_value) && length($self->current_value) > 0; };
1;