Skip to content

Add length constraints #40

@leasunhy

Description

@leasunhy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions