freeipa / freeipa-webui

FreeIPA Web UI
GNU General Public License v3.0
23 stars 11 forks source link

Fix: incorrect fields shown in reset password forms #534

Closed carma12 closed 1 month ago

carma12 commented 1 month ago

The ResetPassword component is not showing the right form fields. Those can be different depending on the logged in user wants to reset its own password or from another user.

When a given user wants to reset its own password the following fields should be shown: current password, new password, validate password, and OTP.

If it wants to reset another user password (and has enough permissions to perform the operation) the fields are: new password and verify password.

This was implemented in the past, but the current logged-in user is not being retrieved correctly and needs to be fixed.