diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f7b9ad0..ed63dbd 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -151,13 +151,13 @@ jobs: - name: Upload Screenshots if: failure() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: screenshots path: tests/Browser/screenshots - name: Upload Console Logs if: failure() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: console path: tests/Browser/console diff --git a/resources/views/pages/auth/login.blade.php b/resources/views/pages/auth/login.blade.php index a82cd2c..926786c 100644 --- a/resources/views/pages/auth/login.blade.php +++ b/resources/views/pages/auth/login.blade.php @@ -150,7 +150,7 @@ public function authenticate() @endif @if($showSocialProviderInfo) -
+
{{ str_replace('__social_providers_list__', implode(', ', $userSocialProviders), config('devdojo.auth.language.login.social_auth_authenticated_message')) }}
@@ -165,9 +165,10 @@ public function authenticate() @if($showPasswordField) -
+
{{ config('devdojo.auth.language.login.forget_password') }}
+

test

@endif diff --git a/routes/web.php b/routes/web.php index 6ed2435..081a6f4 100644 --- a/routes/web.php +++ b/routes/web.php @@ -25,7 +25,7 @@ }); Route::middleware(['web'])->group(function () { - // Add social routes + // Add social redirect and callback routes Route::get('auth/{driver}/redirect', [SocialController::class, 'redirect']); Route::get('auth/{driver}/callback', [SocialController::class, 'callback']); diff --git a/src/Actions/TwoFactorAuth/GenerateQrCodeAndSecretKey.php b/src/Actions/TwoFactorAuth/GenerateQrCodeAndSecretKey.php index a4860df..af3227c 100644 --- a/src/Actions/TwoFactorAuth/GenerateQrCodeAndSecretKey.php +++ b/src/Actions/TwoFactorAuth/GenerateQrCodeAndSecretKey.php @@ -21,7 +21,7 @@ class GenerateQrCodeAndSecretKey public function __invoke($user): array { - $google2fa = new Google2FA(); + $google2fa = new Google2FA; $secret_key = $google2fa->generateSecretKey(); $this->companyName = 'Auth'; @@ -38,7 +38,7 @@ public function __invoke($user): array $writer = new Writer( new ImageRenderer( new RendererStyle(800), - new ImagickImageBackEnd() + new ImagickImageBackEnd ) ); diff --git a/src/AuthServiceProvider.php b/src/AuthServiceProvider.php index 4e0e185..081c5ed 100644 --- a/src/AuthServiceProvider.php +++ b/src/AuthServiceProvider.php @@ -144,7 +144,7 @@ public function register() // Bind a singleton for the Google2FA service $this->app->singleton(Google2FA::class, function ($app) { - return new Google2FA(); + return new Google2FA; }); // Register the DuskServiceProvider diff --git a/src/Traits/HasConfigs.php b/src/Traits/HasConfigs.php index 38f5bfb..6220b2b 100644 --- a/src/Traits/HasConfigs.php +++ b/src/Traits/HasConfigs.php @@ -30,7 +30,7 @@ private function arrayToObject($array) return $array; } - $object = new \stdClass(); + $object = new \stdClass; foreach ($array as $key => $value) { $object->$key = $this->arrayToObject($value); }