DBIx-Class-BcryptColumn
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/DBIx/Class/BcryptColumn.pm view on Meta::CPAN
$self->set_column($column, $self->bcrypt($value, $info{cost}));
}
}
sub insert {
my $self = shift;
$self->_bcrypt_set_columns;
$self->next::method(@_);
}
sub update {
my ($self, $upd, @rest) = @_;
if (ref $upd) {
my @columns = $self->bcrypt_columns;
foreach my $column (@columns) {
next unless exists $upd->{$column};
$self->set_column($column => delete $upd->{$column})
}
}
$self->_bcrypt_set_columns;
$self->next::method($upd, @rest);
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.108 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )