Page 1 of 1

Using customer phone number as login id (account id)

Posted: Wed Nov 09, 2016 2:28 pm
by Viswa
Hi,

Broadleaf demo application is using email id as login id, but i need phone number to be used as login id. Please suggest what is the best way to achieve this?

Thanks in advance,
Viswa

Re: Using customer phone number as login id (account id)

Posted: Tue Jul 25, 2017 3:56 pm
by phillipuniverse
Store the phone number in the username field instead of the email address. Easiest way would be to put phone number validation and prompts on the frontend that actually maps to the Broadleaf Customer.username field. The username is a String so you can put whatever you want to in there.

The Broadleaf forums are being retired as a readonly archive of questions. For active discussions and questions, check out the broadleaf-commerce tag on Stack Overflow which is actively monitored by the Broadleaf team.