Auth-GoogleAuthenticator
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/Auth/GoogleAuthenticator.pm view on Meta::CPAN
=cut
sub new {
my ($class, %args) = @_;
if( $args{ secret_base32 }) {
$args{ secret } = decode_base32( delete $args{ secret_base32 });
};
$args{ auth } ||= Authen::OATH->new();
bless \%args => $class;
}
sub auth { $_[0]->{auth} };
sub registration_qr_code {
my ($self, $label, $type) = @_;
# if we have an OTP, dislay the QRCode to the user
require Imager::QRCode;
my $qrcode = Imager::QRCode->new(
size => 4,
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.943 second using v1.00-cache-2.02-grep-82fe00e-cpan-a086c87fca4 )