|
Lines 11-17
return {
Link Here
|
| 11 |
}); |
11 |
}); |
| 12 |
|
12 |
|
| 13 |
my $edi_vendors = |
13 |
my $edi_vendors = |
| 14 |
$dbh->selectall_arrayref( "SELECT * FROM vendor_edit_accounts", { Slice => {} } ); |
14 |
$dbh->selectall_arrayref( "SELECT * FROM vendor_edi_accounts", { Slice => {} } ); |
| 15 |
if (@$edi_vendors) { |
15 |
if (@$edi_vendors) { |
| 16 |
require Koha::Encryption; |
16 |
require Koha::Encryption; |
| 17 |
my $e = Koha::Encryption->new; |
17 |
my $e = Koha::Encryption->new; |
|
Lines 19-25
return {
Link Here
|
| 19 |
my $id = $edi_vendor->{id}; |
19 |
my $id = $edi_vendor->{id}; |
| 20 |
my $password = $edi_vendor->{password}; |
20 |
my $password = $edi_vendor->{password}; |
| 21 |
$password = $e->encrypt_hex($password); |
21 |
$password = $e->encrypt_hex($password); |
| 22 |
$dbh->do("UPDATE edi_vendor_accounts SET password = $password WHERE id = $id"); |
22 |
$dbh->do("UPDATE vendor_edi_accounts SET password = '$password' WHERE id = $id"); |
| 23 |
} |
23 |
} |
| 24 |
} |
24 |
} |
| 25 |
}, |
25 |
}, |
| 26 |
- |
|
|