New Zenner
- Join Date:
- Aug 2006
- Posts:
- 74
- Plugin Contributions:
- 0
How to disable customers automatic login after account creation?
Hi,
I'm setting up zen-cart not for shop purposes.
Visitors can create an account.
So far so good.
However, after a visitor has created an account he/she will be logged in automatically. How can I disable this?
I've tried the following:
- admin > customers > Customer Approval Status - Authorization Pending=1
and
removed the following lines in includes/modules/mytemplate/create_account.php
aprox. starting at line 344
if (SESSION_RECREATE == 'True') {
zen_session_recreate();
}$_SESSION['customer_first_name'] = $firstname; $_SESSION['customer_default_address_id'] = $address_id; $_SESSION['customer_country_id'] = $country; $_SESSION['customer_zone_id'] = $zone_id; $_SESSION['customers_authorization'] = $customers_authorization; // restore cart contents $_SESSION['cart']->restore_contents(); // hook notifier class$zco_notifier->notify('NOTIFY_LOGIN_SUCCESS_VIA_CREATE_ACCOUNT');
This didn't work.
Your help will be appreciated:smartalec:
grmx