<<

NAME

reset_2fa.pl - Reset the 2FA setting for the Koha user

SYNOPSIS

reset_2fa.pl --userid <userid> reset_2fa.pl --patron_id <patron_id> reset_2fa.pl --cardnumber <cardnumber>

 Options:
   -?|--help        brief help message
   --userid         the userid to be used to find the patron
   --patron_id      the borrowernumber for the patron
   --cardnumber     the cardnumber for the patron

 Note: Only one of --userid, --patron_id, or --cardnumber should be specified.

OPTIONS

--help|-?

Print a brief help message and exits

--userid

The patron's userid (for finding the patron). Mutually exclusive with other options.

--patron_id

The patron's internal id (borrowernumber) for finding the patron. Mutually exclusive with other options.

--cardnumber

Patron's cardnumber (for finding the patron). Mutually exclusive with other options.

DESCRIPTION

A simple script to reset an existing user's 2FA authentication settings.

This script will: - Find the patron using the specified identifier - Check if the patron has 2FA enabled - Reset the patron's 2FA setting

The script requires exactly one of the patron identification parameters and will exit with an error if none or multiple parameters are provided.

<<