We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a93739e commit 0d09dbdCopy full SHA for 0d09dbd
lib/pause_2017/PAUSE/Web/Controller/User/Mfa.pm
@@ -86,7 +86,7 @@ sub _generate_recovery_codes {
86
sub _generate_qrcode {
87
my $auth = shift;
88
my $otpauth = $auth->qr_code(undef, undef, undef, 1);
89
- my $img = plot_qrcode($otpauth, { casesensitive => 1 });
+ my $img = plot_qrcode($otpauth, { casesensitive => 1, size => 4, margin => 4, version => 1, level => 'M' });
90
$img->write(data => \my $qr_png, type => 'png') or die "Failed to write image: " . $img->errstr;
91
my $data = URI->new("data:");
92
$data->data($qr_png);
0 commit comments