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;