Custom login handlers


Hi, how can I login user if my Users collection has no password only ‘pwd’ and i cannot change it to ‘password’ ?


Create your own login handler using Accounts.registerLoginHandler (for a really good intro to custom login handlers, see Extending Meteor Accounts). Within that login handler verify your user by comparing the submitted password against the User collections ‘pwd’ field. Take a look at the Meteor Accounts._checkPassword function for an idea of how to do this.


thx man! I didnt know about Accounts.registerLoginHandler, you saved my day!


The link is broken, do you have a new one ?


Sadly, the meteorhacks site is no more.

However, thanks to the Internet Archive, you can still see the article.