|
Lines 224-234
sub store {
Link Here
|
| 224 |
: undef; |
224 |
: undef; |
| 225 |
$self->privacy($default_privacy); |
225 |
$self->privacy($default_privacy); |
| 226 |
|
226 |
|
| 227 |
# Make a copy of the plain text password for later use |
227 |
# Call any check_password plugins if password is passed |
| 228 |
$self->plain_text_password( $self->password ); |
228 |
if ( C4::Context->preference('UseKohaPlugins') |
| 229 |
|
229 |
&& C4::Context->config("enable_plugins") |
| 230 |
if ( C4::Context->preference('UseKohaPlugins') && C4::Context->config("enable_plugins") ) { |
230 |
&& $self->password ) |
| 231 |
# Call any check_password plugins |
231 |
{ |
| 232 |
my @plugins = Koha::Plugins->new()->GetPlugins({ |
232 |
my @plugins = Koha::Plugins->new()->GetPlugins({ |
| 233 |
method => 'check_password', |
233 |
method => 'check_password', |
| 234 |
}); |
234 |
}); |
|
Lines 238-244
sub store {
Link Here
|
| 238 |
# borrowernumber to the plugin. |
238 |
# borrowernumber to the plugin. |
| 239 |
my $ret = $plugin->check_password( |
239 |
my $ret = $plugin->check_password( |
| 240 |
{ |
240 |
{ |
| 241 |
password => $self->plain_text_password, |
241 |
password => $self->password, |
| 242 |
borrowernumber => $self->borrowernumber |
242 |
borrowernumber => $self->borrowernumber |
| 243 |
} |
243 |
} |
| 244 |
); |
244 |
); |
|
Lines 248-253
sub store {
Link Here
|
| 248 |
} |
248 |
} |
| 249 |
} |
249 |
} |
| 250 |
|
250 |
|
|
|
251 |
# Make a copy of the plain text password for later use |
| 252 |
$self->plain_text_password( $self->password ); |
| 253 |
|
| 251 |
# Create a disabled account if no password provided |
254 |
# Create a disabled account if no password provided |
| 252 |
$self->password( $self->password |
255 |
$self->password( $self->password |
| 253 |
? Koha::AuthUtils::hash_password( $self->password ) |
256 |
? Koha::AuthUtils::hash_password( $self->password ) |
| 254 |
- |
|
|