on 08-19-2016 4:36 PM
Hello ,
Currently Hybris support EmailId and password to login into storefront, but as per our requirement we need to allow login using Email Id/Mobile Number as a username into storefront.
can anyone please suggest how can we achieve this requirement.
HI Kyle,
Thanks for the answer, but i did not find any login controller for that,
i just gone through the code and find out that first time login will be done by spring security " spring-security-config.xml" and i did not understand from where should i wright your code suggest by you?
Thanks,
Ankit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is how I would go about the requirement.
Inside your login controller you would need to differentiate whether the String you were given was an email or phone number. If it is a phone number, you would then run a flexible search to get the email associated with that phone number. Then you would proceed with the login as normal using that email address and the password given from the user.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.