Is it any difference between Meteor.call and Accounts.callLoginMethod (i need to replaced Accounts.callLoginMethod with Meteor.call, because with Meteor3 callback callLoginMethod is called only on error)? Is it anny difference from security reasons?
// Callback if err or success
Meteor.call('twoFactor.loginWithPassword', {
user: selector,
password: hashedPassword,
method
}, callback);
// Callback only if err
Accounts.callLoginMethod({
methodName: 'twoFactor.loginWithPassword',
methodArguments: [{
user: selector,
password: hashedPassword,
method
}],
userCallback: callback
});
Hi @rjdavid after longer time. Thanks for your example, by the code, it must works, but after migration to 3.0.4 or 3.1 (I don’t remember, it was called callback only on error). I will try again, I will let you know.