-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to display external error in parallel with Joi asyncValidation ?? #2783
Comments
I don't understand your issue at all. Show an example of what you want maybe? And next time, don't ignore the issue template, it's there for a reason. |
Thanks for your reply. Sorry, I'll pay attention to it next time and won't ignore issue template.
And if login exists in DB I will get error about mismatch password.
I will get error about user exists in DB. |
Right now you can't, external immediately throws your error. |
Do u mean. It doesn't possible ?? |
There's a PR for it #2773. Seems like everyone ignores it. |
Hey is it possible to return own external validation error like - check isLoginExist in DB and if there is, return error with with Joi Errors ? For now, I am showing that error after all of them from Joi. If password & confirmedPassword don't match the Joi validation is informing about that but not about isLoginTaken. After corrected password matches the isLoginExist error will be returned. Is it possible ??
The text was updated successfully, but these errors were encountered: