From b9ff4399a4260fbef3681e9384d4899f7efcda2a Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Thu, 20 Jun 2024 11:35:15 +0700 Subject: [PATCH] alphanumeric voucher --- system/controllers/home.php | 2 +- system/controllers/login.php | 2 +- system/controllers/voucher.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/system/controllers/home.php b/system/controllers/home.php index ee582821..bce30af5 100644 --- a/system/controllers/home.php +++ b/system/controllers/home.php @@ -230,6 +230,6 @@ $ui->assign('unpaid', ORM::for_table('tbl_payment_gateway') ->where('username', $user['username']) ->where('status', 1) ->find_one()); -$ui->assign('code', alphanumeric(_get('code'))); + $ui->assign('code', alphanumeric(_get('code'),"-")); run_hook('view_customer_dashboard'); #HOOK $ui->display('user-dashboard.tpl'); diff --git a/system/controllers/login.php b/system/controllers/login.php index 4f3538f9..e04370ce 100644 --- a/system/controllers/login.php +++ b/system/controllers/login.php @@ -182,7 +182,7 @@ switch ($do) { default: run_hook('customer_view_login'); #HOOK if ($config['disable_registration'] == 'yes') { - $ui->assign('code', alphanumeric(_get('code'))); + $ui->assign('code', alphanumeric(_get('code'),"-")); $ui->display('user-login-noreg.tpl'); } else { $ui->display('user-login.tpl'); diff --git a/system/controllers/voucher.php b/system/controllers/voucher.php index bd08865d..88651718 100644 --- a/system/controllers/voucher.php +++ b/system/controllers/voucher.php @@ -17,7 +17,7 @@ switch ($action) { case 'activation': run_hook('view_activate_voucher'); #HOOK - $ui->assign('code', alphanumeric(_get('code'))); + $ui->assign('code', alphanumeric(_get('code'),"-")); $ui->display('user-activation.tpl'); break;