jshoyos / soen390-team01

MIT License
0 stars 0 forks source link

Able to add user with invalid password #68

Closed AshwinPhilip30 closed 3 years ago

AshwinPhilip30 commented 3 years ago

Describe the bug In the UserManagement module, it is possible to add a new user, having a password of less than 6 characters. The user is then added to the database but not to firebase. As a result, the newly added user is displayed in the UserManagement module but it will be impossible to log in with the added credentials.

To Reproduce Steps to reproduce the behavior:

  1. Start the application
  2. Sign in
  3. Navigate to the UserManagement tab.
  4. Fill in the fields, make sure the chosen password has less than 6 characters.
  5. Click on Add User.
  6. Now return to the login page and attempt to log in with the credentials that were just added.
  7. It will be impossible to login.

Expected behavior The user should not be added at all and an error should be displayed.

Screenshots Creating new user with short password (under 6 characters) image.png The User has been added image.png Attempting to log in with the new credentials will fail image.png