Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

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