Not able to login with Meteor.loginWithPassword. Throws Type password allowed false


#1

Getting below error while using Meteor.loginWithPassword

client

Meteor.loginWithPassword(user, password, err=>{
       console.log(err)  // Error: Login forbidden [403]
})

server

Accounts.validateLoginAttempt(function (info) {
      console.log(JSON.stringify(info, null, 2));
}

log

{"type": "password",
"allowed": false,
"methodName": "login"...

Working fine while using


#2

Solved the issue by removing dburles:two-factor
It contains allowed methods array in server code.