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

Add length constraints #40

Open
leasunhy opened this issue Jan 9, 2016 · 0 comments
Open

Add length constraints #40

leasunhy opened this issue Jan 9, 2016 · 0 comments

Comments

@leasunhy
Copy link
Owner

leasunhy commented Jan 9, 2016

Currently there are no length constraints for fields in several forms. We should add them because:

  • Login names, passwords, etc, should not be too short.
  • Submitting a very long data to a field may cause 500 since there are length constraints in corresponding models and the database transaction will fail committing.

Fields involved include but not limited to:

  1. User: login_name, password, note, nickname, etc.
  2. Post: title.
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