Hi,
My users can connect to my mobile app by providing their username and password. I use pouchDB authentication plugin for that and it works fine : db.login(username, password [, options] [ callback]).
However, my usernames are fixed ids, that's too abstract for my users.
I'd like to make it possible to connect to my app by providing email address instead of username (email addresses are saved in my _users database).
In other words, I'd like to log with a pouchdb function like that : db.loginWithEmail(emailAddress, password [, options] [ callback])
I don't want to use email addresses as usernames because they can (infrequently) change.
How could I do this with pouchDB ?
Thank's.
Christophe