You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)
13.5.2
Bug summary
Trying to change the password of a member with a username that contains a special character like '&' gives the following error:
Could not reset user password "Invalid username"
Specifics
Steps to reproduce
Navigate to the backoffice and open the Members tab.
Create and save member with a username that contains a special character like umbraco&[email protected].
Press the change password button
Enter a valid password
Press Save to save member
Expected result / actual result
The member should be saved, just like when creating the member with a username that contains a special character.
Instead the save button stays stuck on the loading animation. When navigating to the Log Viewer a warning shows up, explaining that the member password could not be changed (just like in the first screenshot).
The text was updated successfully, but these errors were encountered:
Small update thanks to @bielu related issue; the error can be fixed by adding '&' character to the AllowedUserNameCharacters. However, it does not explain the inconsistency between being able to save a username containing a special character, but not resetting the password without using this option.
@Arlanet-Emre the other ticket mentioned does explain it. It use different validations systems and unless it get unified it will be the case, but it is not that easy to do 🤷
I was able to reproduce it on v13.5.2, v14.3.1 and v15.1.1
When creating a new member with username = umbraco&[email protected], it returns Invalid username,
When updating a member username from [email protected] to umbraco&[email protected], it can be saved
Then do change the password, and it returns 'PasswordChangeFailed'
The reason seems to be the validation between Create and Update is not consistent
Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)
13.5.2
Bug summary
Trying to change the password of a member with a username that contains a special character like '&' gives the following error:
Specifics
Steps to reproduce
Members
tab.umbraco&[email protected]
.Save
to save memberExpected result / actual result
The member should be saved, just like when creating the member with a username that contains a special character.
Instead the save button stays stuck on the loading animation. When navigating to the
Log Viewer
a warning shows up, explaining that the member password could not be changed (just like in the first screenshot).The text was updated successfully, but these errors were encountered: