|
Lines 264-269
sub store {
Link Here
|
| 264 |
|
264 |
|
| 265 |
$self = $self->SUPER::store; |
265 |
$self = $self->SUPER::store; |
| 266 |
|
266 |
|
|
|
267 |
# Call any capture_raw_password plugins |
| 268 |
if ( C4::Context->config("enable_plugins") && $self->plain_text_password ) { |
| 269 |
my @capture_raw_password_plugins = Koha::Plugins->new()->GetPlugins({ |
| 270 |
method => 'capture_raw_password', |
| 271 |
}); |
| 272 |
foreach my $plugin ( @capture_raw_password_plugins ) { |
| 273 |
$plugin->capture_raw_password({ |
| 274 |
password => $self->plain_text_password, |
| 275 |
borrowernumber => $self->borrowernumber |
| 276 |
}); |
| 277 |
} |
| 278 |
} |
| 279 |
|
| 267 |
$self->add_enrolment_fee_if_needed(0); |
280 |
$self->add_enrolment_fee_if_needed(0); |
| 268 |
|
281 |
|
| 269 |
logaction( "MEMBERS", "CREATE", $self->borrowernumber, "" ) |
282 |
logaction( "MEMBERS", "CREATE", $self->borrowernumber, "" ) |
|
Lines 825-830
sub set_password {
Link Here
|
| 825 |
} |
838 |
} |
| 826 |
|
839 |
|
| 827 |
if ( C4::Context->config("enable_plugins") ) { |
840 |
if ( C4::Context->config("enable_plugins") ) { |
|
|
841 |
|
| 828 |
# Call any check_password plugins |
842 |
# Call any check_password plugins |
| 829 |
my @plugins = Koha::Plugins->new()->GetPlugins({ |
843 |
my @plugins = Koha::Plugins->new()->GetPlugins({ |
| 830 |
method => 'check_password', |
844 |
method => 'check_password', |
|
Lines 846-851
sub set_password {
Link Here
|
| 846 |
Koha::Exceptions::Password::Plugin->throw(); |
860 |
Koha::Exceptions::Password::Plugin->throw(); |
| 847 |
} |
861 |
} |
| 848 |
} |
862 |
} |
|
|
863 |
|
| 864 |
# Call any capture_raw_password plugins |
| 865 |
my @capture_raw_password_plugins = Koha::Plugins->new()->GetPlugins({ |
| 866 |
method => 'capture_raw_password', |
| 867 |
}); |
| 868 |
foreach my $plugin ( @capture_raw_password_plugins ) { |
| 869 |
$plugin->capture_raw_password({ |
| 870 |
password => $password, |
| 871 |
borrowernumber => $self->borrowernumber |
| 872 |
}); |
| 873 |
} |
| 874 |
|
| 849 |
} |
875 |
} |
| 850 |
|
876 |
|
| 851 |
my $digest = Koha::AuthUtils::hash_password($password); |
877 |
my $digest = Koha::AuthUtils::hash_password($password); |
| 852 |
- |
|
|