https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44343 --- Comment #1 from babar junaid <babarjunaid1122@gmail.com> --- Created attachment 212810 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212810&action=edit Bug 44343: Leave password and secret out of the default patron export Bug 44343: Leave password and secret out of the default patron export With no --field, export_borrowers.pl exported every borrowers column, including the password hash and the two-factor secret. Staff are patrons, so an "export all" file carried every staff member's 2FA secret. The hash cannot be used by an import either: patron import treats a password column as a plain password and hashes it again. Without --field the two columns are now left out. They are still exported when named with --field. Test plan: 1. perl misc/export_borrowers.pl -H --where "borrowernumber=<a patron with 2FA>" The header has password and secret. 2. Apply the patch and run it again: neither is in the header or the line. 3. Add -f cardnumber -f password: both are exported. 4. perl misc/export_borrowers.pl --help mentions the two columns. Sponsored-by: Koha Solutions -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.