| Jifty documentation | Contained in the Jifty distribution. |
Jifty::Web::Form::Field::Password - Add a password field to your forms
The HTML input type is password.
The default value of a password field should always be empty.
No browser-based form auto-completion in password fields ;)
Note: This has nothing to do with Jifty's Autocomplete mechanism.
Never render a value for a password
Output password fields with the class 'password'
| Jifty documentation | Contained in the Jifty distribution. |
use warnings; use strict; package Jifty::Web::Form::Field::Password; use base qw/Jifty::Web::Form::Field/;
sub type { 'password' }
sub current_value {''}
sub other_widget_properties { return q{autocomplete="off"}; }
sub render_value { Jifty->web->out('-'); return ''; }
sub classes { my $self = shift; return join(' ', 'password', ($self->SUPER::classes)); } 1;