1
0
mirror of https://github.com/Daichimarukana/uwuzu.git synced 2026-06-05 03:24:41 +00:00

Add files via upload

This commit is contained in:
だいちまる
2023-08-21 13:57:56 +09:00
committed by GitHub
parent 965d7b903c
commit 76cf76475c
21 changed files with 453 additions and 181 deletions
+2 -2
View File
@@ -98,7 +98,7 @@ class PHPGangsta_GoogleAuthenticator
*
* @return string
*/
public function getQRCodeGoogleUrl($name, $secret, $title = null, $params = array())
public function getQRCodeUrl($name, $secret, $title = null, $params = array())
{
$width = !empty($params['width']) && (int) $params['width'] > 0 ? (int) $params['width'] : 200;
$height = !empty($params['height']) && (int) $params['height'] > 0 ? (int) $params['height'] : 200;
@@ -109,7 +109,7 @@ class PHPGangsta_GoogleAuthenticator
$urlencoded .= urlencode('&issuer='.urlencode($title));
}
return "https://api.qrserver.com/v1/create-qr-code/?data=$urlencoded&size=${width}x${height}&ecc=$level";
return "$urlencoded";
}
/**