From 02ee07440e442c994c087e96a1dcde8eee6af051 Mon Sep 17 00:00:00 2001 From: vmanrc <138237622+vmanrc@users.noreply.github.com> Date: Wed, 17 Apr 2024 16:00:57 -0400 Subject: [PATCH 1/3] Update GoogleAuthenticator.php to be compliant with PHP 8.3 Make the returned URL compliant with PHP 8.3: put curly brackets around variables. --- PHPGangsta/GoogleAuthenticator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PHPGangsta/GoogleAuthenticator.php b/PHPGangsta/GoogleAuthenticator.php index bf7d116..6a9e690 100644 --- a/PHPGangsta/GoogleAuthenticator.php +++ b/PHPGangsta/GoogleAuthenticator.php @@ -109,7 +109,7 @@ public function getQRCodeGoogleUrl($name, $secret, $title = null, $params = arra $urlencoded .= urlencode('&issuer='.urlencode($title)); } - return "https://api.qrserver.com/v1/create-qr-code/?data=$urlencoded&size=${width}x${height}&ecc=$level"; + return "https://api.qrserver.com/v1/create-qr-code/?data={$urlencoded}&size={$width}x{$height}&ecc={$level}"; } /** From b2fbf2cea0937ed79788e48b5a7ad60615af0588 Mon Sep 17 00:00:00 2001 From: vmanrc <138237622+vmanrc@users.noreply.github.com> Date: Thu, 18 Apr 2024 09:33:47 -0400 Subject: [PATCH 2/3] Update composer.json Update name and version --- composer.json | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/composer.json b/composer.json index 9de7cc1..a14461b 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "phpgangsta/googleauthenticator", + "name": "vmanrc/googleauthenticator", "description": "Google Authenticator 2-factor authentication", "version": "1.0.0", "type": "library", @@ -7,16 +7,10 @@ "license": "BSD-4-Clause", "authors": [ { - "name": "Michael Kliewe", - "email": "info@phpgangsta.de", - "homepage": "http://www.phpgangsta.de/", - "role": "Developer" + "name": "Voytek Manowiec", + "homepage": "https://github.com/vmanrc", } ], - "support": { - "source": "https://github.com/PHPGangsta/GoogleAuthenticator", - "issues": "https://github.com/PHPGangsta/GoogleAuthenticator/issues" - }, "require": { "php": ">=5.3" }, From 24f73341cb0aef580c895c42eb4c23b81c5b9820 Mon Sep 17 00:00:00 2001 From: vmanrc <138237622+vmanrc@users.noreply.github.com> Date: Thu, 18 Apr 2024 10:24:30 -0400 Subject: [PATCH 3/3] Update composer.json Update name and remove comma from homepage --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index a14461b..ea1ca6a 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "vmanrc/googleauthenticator", + "name": "phpgangsta/googleauthenticator", "description": "Google Authenticator 2-factor authentication", "version": "1.0.0", "type": "library", @@ -8,7 +8,7 @@ "authors": [ { "name": "Voytek Manowiec", - "homepage": "https://github.com/vmanrc", + "homepage": "https://github.com/vmanrc" } ], "require": {