Custom login handlers


#1

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


#2

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.


#3

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


#4

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


#5

Sadly, the meteorhacks site is no more.

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