meteor-useraccounts / core

Meteor sign up and sign in templates' core functionalities
http://useraccounts.meteor.com/
MIT License
529 stars 278 forks source link

DDP-Ratelimiter-error is NOT reported and crashes Form #738

Open thebarty opened 7 years ago

thebarty commented 7 years ago

Hi guys,

just tested DDP-Rate-Limiting (https://docs.meteor.com/api/methods.html#DDPRateLimiter-setErrorMessage) and found that this form does NOT report the error - it just crashes at this line: https://github.com/meteor-useraccounts/core/blob/9dd207acd5545cd85242c3dd0eb74b32c40b48c9/lib/client.js#L425 with the error

Cannot read property 'setError' of undefined

The error that is thrown by DDPRateLimiter is NOT in the expected format.

It is NOT really bad as the form is disabled, so this is just for your info. Maybe someone takes the effort to fix it.

HOW TO REPLICATE: 1) install DdpRateLimiter 2) keep its default-settings 3) go to your signin page and enter wrong data... then quickly hit SUBMIT 5 times