Skip to content

Commit

Permalink
callback now accept request when user logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
AminulBD committed Oct 19, 2020
1 parent 58a2615 commit e677ed2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/gateways/callback/bkashlegacy.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

use Carbon\Carbon;
use Symfony\Component\HttpFoundation\Request;
use WHMCS\ClientArea;
use WHMCS\Database\Capsule;

require_once __DIR__ . '/../../../init.php';
Expand Down Expand Up @@ -387,6 +388,10 @@ public function makeTransaction()
die("Direct access forbidden.");
}

if ((new ClientArea())->isLoggedIn()) {
die("You will need to login first.");
}

$bKashCheckout = bKashLegacy::init();

if (!$bKashCheckout->isActive) {
Expand Down

0 comments on commit e677ed2

Please sign in to comment.