meteor-useraccounts / flow-routing

Useraccounts packages add-on for integration with Flow Router and Blaze Layout.
https://atmospherejs.com/useraccounts/flow-routing
MIT License
72 stars 50 forks source link

Add check for special error from meteor/ddp-rate-limiter #58

Open RomanBf opened 6 years ago

RomanBf commented 6 years ago

Fixes this issue. Without checking for this error, when rate-limiting kicks in it throws an error because fieldId is set to "timeToReset" (and this field does not exist). The whole accounts-form then is disabled and unresponsive, without informing the user about what's going on (you can only see the error message in the client-side browser console).