https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40545

Martin Renvoize (ashimema) <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #185849|0                           |1
        is obsolete|                            |

--- Comment #15 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 186230
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=186230&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

Sponsored-by: ByWater Solutions
Signed-off-by: David Nind <[email protected]>
Signed-off-by: Martin Renvoize <[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/

Reply via email to