Lines 243-249
sub store {
Link Here
|
243 |
my $ret = $plugin->check_password( |
243 |
my $ret = $plugin->check_password( |
244 |
{ |
244 |
{ |
245 |
password => $self->password, |
245 |
password => $self->password, |
246 |
borrowernumber => $self->borrowernumber |
|
|
247 |
} |
246 |
} |
248 |
); |
247 |
); |
249 |
if ( $ret->{'error'} == 1 ) { |
248 |
if ( $ret->{'error'} == 1 ) { |
Lines 830-847
sub set_password {
Link Here
|
830 |
method => 'check_password', |
829 |
method => 'check_password', |
831 |
}); |
830 |
}); |
832 |
foreach my $plugin ( @plugins ) { |
831 |
foreach my $plugin ( @plugins ) { |
833 |
# This plugin hook will also be used by a plugin for the Norwegian national |
|
|
834 |
# patron database. This is why we need to pass both the password and the |
835 |
# borrowernumber to the plugin. |
836 |
my $ret = $plugin->check_password( |
832 |
my $ret = $plugin->check_password( |
837 |
{ |
833 |
{ |
838 |
password => $password, |
834 |
password => $password, |
839 |
borrowernumber => $self->borrowernumber |
|
|
840 |
} |
835 |
} |
841 |
); |
836 |
); |
842 |
# This plugin hook will also be used by a plugin for the Norwegian national |
837 |
# Only throw an exception if skip_validation is not in effect |
843 |
# patron database. This is why we need to call the actual plugins and then |
|
|
844 |
# check skip_validation afterwards. |
845 |
if ( $ret->{'error'} == 1 && !$args->{skip_validation} ) { |
838 |
if ( $ret->{'error'} == 1 && !$args->{skip_validation} ) { |
846 |
Koha::Exceptions::Password::Plugin->throw(); |
839 |
Koha::Exceptions::Password::Plugin->throw(); |
847 |
} |
840 |
} |
848 |
- |
|
|