Skip to content
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

Validator.registerAsync() callback documentation #464

Open
sdr0x07b6 opened this issue Mar 31, 2023 · 0 comments
Open

Validator.registerAsync() callback documentation #464

sdr0x07b6 opened this issue Mar 31, 2023 · 0 comments

Comments

@sdr0x07b6
Copy link
Contributor

What happened?
The current document looks like this

Validator.registerAsync('username_available', function(username, attribute, req, passes) {

However, the order of attribute and req is actually reversed.

What did you expect to happen?
It should be written like this

Validator.registerAsync('username_available', function(username, requirement, attribute, passes) {

Are you willing to submit a pull request to fix this bug?
I don't know if they would even look at it if I submitted it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant