You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It`ll be useful for example for Meteor Accounts error displaying:
Accounts.forgotPassword({email: form.get('email')},err=>{if(err&&typeoferr.reason==='string'){constreason=err.reason;if(reason.indexOf('User not found')!==-1){// adding error manually}// ...}});
where form is Astro.Class instance.
Maybe something similar to [Simple Schemas](https://github.com/aldeed/meteor-simple-schema#manually-adding-a-validation-error) validationContext.addInvalidKeys(errors)`.
P.S. Great work, many thanks!
The text was updated successfully, but these errors were encountered:
If don't know if in your case is it needed however it may be good feature to implement. I will probably add it in the near future. However, right now you can do it using some internal API.
form._errors.set('fieldName','Error message');
Right now all error messages are related with some field name. However I will be working on implementing field errors and document errors. Where document errors will be related with entire document, not particular field.
It`ll be useful for example for Meteor Accounts error displaying:
where
form
isAstro.Class
instance.Maybe something similar to [Simple Schema
s](https://github.com/aldeed/meteor-simple-schema#manually-adding-a-validation-error)
validationContext.addInvalidKeys(errors)`.P.S. Great work, many thanks!
The text was updated successfully, but these errors were encountered: