Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
Hello all, I recently added the members module and it's fantastic!
I have one question though, Is it possible to login with a card id and password instead of the email and password?

Thanks a lot!
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?
Thank you KK,
I intend to use a serial number, not a credit card id :)

But one more question, how do I set the card-id as the user-name?
OK :) Thanks for confirming.
4 posts Page 1 of 1