Fixing PHP warnings in qrcode.php

Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
This commit is contained in:
rdwebdesign
2021-12-27 23:42:56 -03:00
parent 88039aea1c
commit 4c8f869e7b
2 changed files with 17 additions and 11 deletions

View File

@@ -3,6 +3,7 @@
<style>
body {
background: #fff;
margin: 10px 0;
}
.qrcode {
@@ -32,7 +33,8 @@ if($auth) {
echo '<div class="qrcode">';
require_once("../../vendor/qrcode.php");
$qr = QRCode::getMinimumQRCode($pwhash, QR_ERROR_CORRECT_LEVEL_Q);
$qr->printSVG("10px");
// The size of each block (in pixels) should be an integer
$qr->printSVG(10);
echo "</div>";
echo 'Raw API Token: <code class="token">' . $pwhash . "</code></div>";
} else {