diff --git a/app/Http/Controllers/TwoFactorController.php b/app/Http/Controllers/TwoFactorController.php index d3c9097bd4..2fddbe3714 100644 --- a/app/Http/Controllers/TwoFactorController.php +++ b/app/Http/Controllers/TwoFactorController.php @@ -31,7 +31,7 @@ class TwoFactorController extends BaseController $secret = $google2fa->generateSecretKey(); $qr_code = $google2fa->getQRCodeGoogleUrl( - config('ninja.app_name') + config('ninja.app_name'), $user->email, $secret ); diff --git a/routes/api.php b/routes/api.php index 48fdd6c4e2..5ef05ac221 100644 --- a/routes/api.php +++ b/routes/api.php @@ -177,6 +177,6 @@ Route::match(['get', 'post'], 'payment_webhook/{company_key}/{company_gateway_id ->middleware(['guest', 'api_db']) ->name('payment_webhook'); -Route::post('postmark_webhook', 'PostMarkController@webhook'); +Route::post('api/v1/postmark_webhook', 'PostMarkController@webhook'); Route::fallback('BaseController@notFound');