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

Implement user input validation #25

Open
enriquemetner opened this issue May 6, 2024 · 0 comments
Open

Implement user input validation #25

enriquemetner opened this issue May 6, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@enriquemetner
Copy link
Collaborator

Feature

What

Owner Registration

Where to find

in the toolbar click on owners -> registration

Break

The registration validation is mostly already broken, as you can enter anything in any field with the exception of 'Telephone' which requires the input to be a 12-digit number and the fact that every field is required.
Break the feature even more by making the fields non-required and by removing the validation from 'Telephone' completely

Fix

Implement input validation with reasonable requirements for each field

Requirements

  • First Name & Last Name
    • min 2 characters
    • max 30 characters
    • letters only
  • Address
    • regex (street + number)
    • max 40 characters
  • City
    • min 2 characters
    • max 30 characters
    • letters only
  • Telephone
    • regex
@enriquemetner enriquemetner added the enhancement New feature or request label May 6, 2024
@enriquemetner enriquemetner added this to the M1 milestone May 6, 2024
@enriquemetner enriquemetner removed this from the M1 milestone May 27, 2024
@LukasLBRCHT LukasLBRCHT added this to the M2 milestone May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants