javascript - Meteor.loginWithPassword reporting failed login incorrectly -
when log in using meteor.loginwithpassword (with valid credentials) callback fires 403 (incorrect password) error. second later, meteor.user() populates though no error encountered.
'click #loginsubmit': (event) -> meteor.loginwithpassword $("#usernameinput").val(), $("#passwordinput").val(), (error) -> if error meteor.call("addlogentry","login failed callback","debug",error) alert "user not found or incorrect password" this annoying user gets error popup , immidiately gets taken post login landing page..
it's worth mentioning above code has been working flawlessly months.. has started acting up.
this me being bit silly. login button submitting (inside form) me manually submitting. double submit seems cause. eliminated one. problem goes away.
Comments
Post a Comment