sitmun / sitmun-admin-app

Administration application for the SITMUN system.
European Union Public License 1.2
0 stars 0 forks source link

Admin allows adding two users with the same username #222

Open mvinent opened 6 days ago

mvinent commented 6 days ago

Describe the bug The admin allows adding two users with the same username, which should not be permitted and also leads to errors. This means not being able to acces with that username even trying with both passwords created for each instance of the username.

To Reproduce Steps to reproduce the behavior:

  1. Go to admin
  2. Go to user screen
  3. Create new user with the same name of an existing user.
  4. Try to login with that username
  5. See error

Expected behavior The admin should check for existing users and not allow repeated usernames. I could show a popup informing the error.

fjlopez commented 4 days ago

I am unable to replicate this bug. With an existing user with username admin, it is not possible to create a new user with the same username. In the Usuari-Nou form:

Captura de pantalla 2024-10-15 a las 17 59 08

@mvinent, could you please provide an example and a screenshot that demonstrates how to reproduce this bug?

mvinent commented 4 days ago

You're right in the 'common' deployed app it's working fine, as you say. We've detected this bug in our own deployment of the app, it's possible that we have deployed an older version.

image

We'll donwload the latest version and we'll test it again.