Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Set customer group id on session to 0 on login with inactive account

  • Loading branch information...
commit 673642cc5e3f6c4d7bff5cc48d9c8142cd41204b 1 parent 1038482
@Vinai authored
View
4 app/code/community/Netzarbeiter/CustomerActivation/Model/Observer.php
@@ -47,7 +47,9 @@ public function customerLogin($observer)
/*
* Fake the old logout() method without deleting the session and all messages
*/
- $session->setCustomer(Mage::getModel('customer/customer'))->setId(null);
+ $session->setCustomer(Mage::getModel('customer/customer'))
+ ->setId(null)
+ ->setCustomerGroupId(Mage_Customer_Model_Group::NOT_LOGGED_IN_ID);
if ($this->_checkRequestRoute('customer', 'account', 'createpost')) {
/*

0 comments on commit 673642c

Please sign in to comment.
Something went wrong with that request. Please try again.