-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Umbraco is not validating same way save user and change password #14823
Comments
Hi there @bielu! Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better. We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.
We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions. Thanks, from your friendly Umbraco GitHub bot 🤖 🙂 |
Hey! What I did was: Set I will mark this issue up as an up for grabs! 😄 Please let me know if I missed anything. |
Hi @bielu, We're writing to let you know that we would love some help with this issue. We feel that this issue is ideal to flag for a community member to work on it. Once flagged here, folk looking for issues to work on will know to look at yours. Of course, please feel free work on this yourself ;-). If there are any changes to this status, we'll be sure to let you know. For more information about issues and states, have a look at this blog post. Thanks muchly, from your friendly Umbraco GitHub bot :-) |
I will try to look at this |
@Amalie-Wowern it is ltitle tricky as Umbraco use .net identity abstraction to validate and when you saving you have Ipublishcontent. :) If you need support about code logic there let me know |
@bielu Yes i noticed its a little tricky. |
If i understand the issue correctly. The bug is that, when the password is changed its validating the username wrong. It does not take into consideration that the UsernameIsEmail is disabled? |
No. It is related to that when you disable UsernameIsEmail Umbraco doesnt validate in same username as when you change password. So case 1:
Case 2:
Case 3:
It will fails as Validation for user name fails. So in case 3 we have the bug from this ticket on Updating user with space when space is not allowed. |
Hello @bielu I have looked into the issue now and tested it a little bit. It looks like that there are no method for checking if the username contains not allowed characters. I could not find a method i could use from the update password function I will stop working on this as i dont think im the right person to create the best check |
Unfortunately still seeing this in 13.2.2 for Members. I can add disallowed characters (for example a space or a pipe) to the login field (_umb_login) when editing a member, but when I then try to change the password it fails, because the username is not valid (the MemberController.PostSave fails: see the error below). |
Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)
10.6.1
Bug summary
Bug found as part: #14808
Specifics
No response
Steps to reproduce
Expected result / actual result
validation is same between save user and change password
The text was updated successfully, but these errors were encountered: