by
KK » Mon Jan 11, 2016 3:49 pm
Hi,
A member can login using either email or the user-name.
For the sample implementation, we are using auto-generated user-names so email was the only option available for login.
If you set the card-id as the user-name instead, I think we could use that for login.
Chances are that the card-id would only contain characters deemed valid for user-names in Couch (i.e. a-z, A-Z, 0-9, _-) else you might have to fudge some values.
That said, I really must warn you about something - if by card-id you mean real Credit card IDs, you must rethink your decision. There are very strict norms under which a site is permitted to store credit card details. Are you sure you are following those?