Trying to change a password with an invalid character raises an error in flask_security UnicodeDecodeError and seems to reset the password or leave it empty, preventing to log in again. (See Sentry RERO-ILS-33R).
Expected behavior:
If I try to change my password to an invalid character that will prevent unicode ASCII decoding, the interface should warn me and prevent me to click save, or at least cancel the password change function and keep the previous password.
Steps to Reproduce:
Log in with any user
Click "change my password"
Enter a new password containing for example character "ë"
See error and see that there is no way to login again with either previous or new password
Bug description:
Trying to change a password with an invalid character raises an error in flask_security
UnicodeDecodeError
and seems to reset the password or leave it empty, preventing to log in again. (See Sentry RERO-ILS-33R).Expected behavior:
If I try to change my password to an invalid character that will prevent unicode ASCII decoding, the interface should warn me and prevent me to click save, or at least cancel the password change function and keep the previous password.
Steps to Reproduce:
Context
v1.17.0