Jifty::Web::Form::Field::Password - Add a password field to your forms


Jifty documentation Contained in the Jifty distribution.

Index


Code Index:

NAME

Top

Jifty::Web::Form::Field::Password - Add a password field to your forms

METHODS

Top

type

The HTML input type is password.

current_value

The default value of a password field should always be empty.

other_widget_properties

No browser-based form auto-completion in password fields ;)

Note: This has nothing to do with Jifty's Autocomplete mechanism.

render_value

Never render a value for a password

classes

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;