View | Details | Raw Unified | Return to bug 22706
Collapse All | Expand All

(-)a/Koha/Patron.pm (-16 / +10 lines)
Lines 44-50 use Koha::Patron::Images; Link Here
44
use Koha::Patron::Relationships;
44
use Koha::Patron::Relationships;
45
use Koha::Patrons;
45
use Koha::Patrons;
46
use Koha::Plugins;
46
use Koha::Plugins;
47
use Koha::Plugins::Handler;
48
use Koha::Subscription::Routinglists;
47
use Koha::Subscription::Routinglists;
49
use Koha::Token;
48
use Koha::Token;
50
use Koha::Virtualshelves;
49
use Koha::Virtualshelves;
Lines 237-250 sub store { Link Here
237
                        # This plugin hook will also be used by a plugin for the Norwegian national
236
                        # This plugin hook will also be used by a plugin for the Norwegian national
238
                        # patron database. This is why we need to pass both the password and the
237
                        # patron database. This is why we need to pass both the password and the
239
                        # borrowernumber to the plugin.
238
                        # borrowernumber to the plugin.
240
                        my $ret = Koha::Plugins::Handler->run({
239
                        my $ret = $plugin->check_password(
241
                            class  => ref $plugin,
240
                            {
242
                            method => 'check_password',
243
                            params => {
244
                                password       => $self->plain_text_password,
241
                                password       => $self->plain_text_password,
245
                                borrowernumber => $self->borrowernumber,
242
                                borrowernumber => $self->borrowernumber
246
                            },
243
                            }
247
                        });
244
                        );
248
                        if ( $ret->{'error'} == 1 ) {
245
                        if ( $ret->{'error'} == 1 ) {
249
                            Koha::Exceptions::Password::Plugin->throw();
246
                            Koha::Exceptions::Password::Plugin->throw();
250
                        }
247
                        }
Lines 754-767 sub set_password { Link Here
754
            # This plugin hook will also be used by a plugin for the Norwegian national
751
            # This plugin hook will also be used by a plugin for the Norwegian national
755
            # patron database. This is why we need to pass both the password and the
752
            # patron database. This is why we need to pass both the password and the
756
            # borrowernumber to the plugin.
753
            # borrowernumber to the plugin.
757
            my $ret = Koha::Plugins::Handler->run({
754
            my $ret = $plugin->check_password(
758
                class  => ref $plugin,
755
                {
759
                method => 'check_password',
760
                params => {
761
                    password       => $password,
756
                    password       => $password,
762
                    borrowernumber => $self->borrowernumber,
757
                    borrowernumber => $self->borrowernumber
763
                },
758
                }
764
            });
759
            );
765
            # This plugin hook will also be used by a plugin for the Norwegian national
760
            # This plugin hook will also be used by a plugin for the Norwegian national
766
            # patron database. This is why we need to call the actual plugins and then
761
            # patron database. This is why we need to call the actual plugins and then
767
            # check skip_validation afterwards.
762
            # check skip_validation afterwards.
768
- 

Return to bug 22706