This Meteor app has the insecure and autopublish removed and accounts-ui accounts-password added.
I am able to register a new user but how can I modify the app so that a user can send the username and password then my app invokes isUserExist and if true is returned, then the app logs this user in? Thanks
//client/login.html
<template name="login">
{{> loginButtons}}
</template>
//client/login.js
Accounts.ui.config({
passwordSignupFields: "USERNAME_ONLY"
});
//server.js
Meteor.methods({
isUserExist: function (username, password) {
//do work
return true; //or false
}
});