Skip to content

Better account validation in Meteor: t3db0t:accounts-invite

2016 March 10
by Tedb0t

While working on a Meteor project, I needed a way to allow or deny user account creation only at certain places (such as an ‘accept invitation’ route/template).  This turns out to be difficult, because the core accounts package doesn’t provide a way to do a server-side validation of the attempted login.

So after a whole lot of research and hacking, I’ve published t3db0t:accounts-invite.  See a live demo/explanation.

Using it is easy: register a validation callback, and then call inviteWithLogin in the route/template (or wherever) of your choice.

Comments and Pull Requests are welcome at the Github repo.

Related Posts:

Comments are closed.