How to disallow login for inactive users in meteor? -


i have active field on users collection , want prevent users field set false login on application. allow them login in future, can't delete account or change password. how can disallow them login in meteor?

while not stop them logging in directly logout them out login depending on use may work hack around:

meteor.autorun(function(){   if(typeof meteor.user().blocked !== "undefined"){     meteor.logout(function(){alert('your account blocked @ moment, please contact more information');});       } }); 

where blocked invalid account attribute have set


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -