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

Validating username field #170

Closed
wlingke opened this issue Sep 23, 2016 · 1 comment
Closed

Validating username field #170

wlingke opened this issue Sep 23, 2016 · 1 comment
Labels

Comments

@wlingke
Copy link

wlingke commented Sep 23, 2016

Is there any way to specify a validation function for the username field (similar to password field)? For instance, if I wanted only emails, is there a way to check that the input is actually an email?

If not, I can write a middleware before it but would prefer the to use a passport local mongoose option if available.

@saintedlama
Copy link
Owner

Validating the username with some username rules should be best done in a http/express/koa/whatever middleware and not in this plugin.

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

No branches or pull requests

2 participants