diff options
author | groditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-09-04 00:46:20 +0000 |
---|---|---|
committer | groditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-09-04 00:46:20 +0000 |
commit | d4667bef2fd27182a34a72d368090a3c26e2bd45 (patch) | |
tree | 158c2bca955c4c1dade08d5b2d928f3b51590a80 /lib/Reaction/UI/ViewPort/Field | |
parent | c72dfafbadfab903436fa033833a63270616bb22 (diff) | |
download | reaction-d4667bef2fd27182a34a72d368090a3c26e2bd45.tar.gz reaction-d4667bef2fd27182a34a72d368090a3c26e2bd45.zip |
fix matching passwords stuff
Diffstat (limited to 'lib/Reaction/UI/ViewPort/Field')
-rw-r--r-- | lib/Reaction/UI/ViewPort/Field/Mutable/MatchingPasswords.pm | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/Reaction/UI/ViewPort/Field/Mutable/MatchingPasswords.pm b/lib/Reaction/UI/ViewPort/Field/Mutable/MatchingPasswords.pm index 0685f87..845b8b5 100644 --- a/lib/Reaction/UI/ViewPort/Field/Mutable/MatchingPasswords.pm +++ b/lib/Reaction/UI/ViewPort/Field/Mutable/MatchingPasswords.pm @@ -1,22 +1,20 @@ package Reaction::UI::ViewPort::Field::Mutable::MatchingPasswords; use Reaction::Class; -use aliased 'Reaction::UI::ViewPort::Field::Mutable::Password'; - use namespace::clean -except => [ qw(meta) ]; -extends Password; - +extends 'Reaction::UI::ViewPort::Field::Mutable::Password'; has check_value => (is => 'rw', isa => 'Str', ); has check_label => (is => 'rw', isa => 'Str', lazy_build => 1); + sub _build_check_label { my $orig_label = shift->label; return "Confirm ${orig_label}"; -}; +} #maybe both check_value and value_string should have triggers ? -#that way if one even happens before the other it would still work? +#that way if one even happens before the other it would still work? around adopt_value_string => sub { my $orig = shift; my ($self) = @_; @@ -39,5 +37,6 @@ around can_sync_to_action => sub { __PACKAGE__->meta->make_immutable; - 1; + +__END__; |