https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40545
Tomás Cohen Arazi (tcohen) <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #184850|0 |1 is obsolete| | Attachment #184851|0 |1 is obsolete| | Attachment #184852|0 |1 is obsolete| | --- Comment #12 from Tomás Cohen Arazi (tcohen) <[email protected]> --- Created attachment 185849 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=185849&action=edit Bug 40545: Add has_2fa_enabled and reset_2fa methods to Koha::Patron This adds two new methods to Koha::Patron for managing two-factor authentication: * has_2fa_enabled() - Returns 1 if patron has 2FA enabled, 0 otherwise * reset_2fa() - Clears secret and sets auth_method to 'password' The reset_2fa method includes audit logging when BorrowersLog is enabled and returns the patron object for method chaining. To test: 1. Apply patch 2. Run: $ ktd --shell k$ prove t/db_dependent/Koha/Patron.t => SUCCESS: Tests pass! 3. Sign off :-D Signed-off-by: David Nind <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
