Lemonldap::NG::Portal::Lib::2fDevices(3pm) | User Contributed Perl Documentation | Lemonldap::NG::Portal::Lib::2fDevices(3pm) |
Lemonldap::NG::Portal::Lib::2fDevices - Role for registrable second factors
This role provides LemonLDAP::NG modules with a high-level interface to storing information on registrable second factors into the persistent session.
It is recommended that _2fDevices is never accessed directly from code outside of this module
$self->update2fDevice($req, $info, $type, $key, $value, $update_key, $update_value);
Returns true if the update was sucessful
$self->add2fDevice($req, $info, $device);
Returns true if the update was sucessful
$self->del2fDevices($req, $info, $devices);
[ { type => xxx, epoch => xxx }, { type => xxx, epoch => xxx } ]
Returns true if the update was sucessful
$self->del2fDevice($req, $info, $type, $epoch);
Returns true if the update was sucessful
$self->find2fDevicesByKey($req, $info, $type, $key, $value);
Returns an array of devices for which type, key and value match the supplied ones
$self->get2fDevices($req, $info);
Returns an arrayref of all registrable devices, or undef if an error occured
$self->find2fDevicesByType($req, $info, $type);
Returns an array of all matching devices
2023-09-29 | perl v5.36.0 |