Magento Forum

   
Different customer login arguments
 
obamskie
Jr. Member
 
Total Posts:  6
Joined:  2009-02-24
 

It is possible to use different customer login arguments? Magento’s default is based upon email and password. I would like to use a unique debtor number for username. This is because we are importing our customers from an ERP system into Magento.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Pierre SII
Jr. Member
 
Total Posts:  25
Joined:  2008-12-19
Nice, France
 

yes !
You need to overload customer/account/login action to do your own check and then do:
<code>
$this->_getSession()->setCustomerAsLoggedIn($customer);
</code>

 
Magento Community Magento Community
Magento Community
Magento Community
 
obamskie
Jr. Member
 
Total Posts:  6
Joined:  2009-02-24
 

Tnx, will give it a try!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top