-
Notifications
You must be signed in to change notification settings - Fork 201
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
Processwire 3.0.33: Username behavior #2021
Comments
Quick tip: Markdown is italicising your underscore-wrapped usernames. Better to wrap them in backticks to avoid slight confusion. 😉 |
Thanks for the report @NameLess--. In ProcessWire users are pages like any other, so they all follow an established set of rules. Leading, trailing or doubled non-alpha/non-digit aren't used in page names. So the behavior you are seeing is intended, though maybe the installer needs to be more clear about that.
It should be the first Inputfield on the screen when editing a user, right above "Set Password". Note however if you are editing your user profile, there is no "name" Inputfield there.
There is already an issue report open for this one. It appears to be something with jQuery UI. We don't yet have a solution for this one that doesn't involve editing the jQuery UI source. But working on it. |
@mikerockett Thanks for the heads up. I missed that completely. Fixed now. @ryancramerdesign Leading and trailing _- works during installation. Maybe the inputfield should be parsed there as well to avoid confusion. This would also fix my 2) point. Something to my 3) point: I am talking about this page: Admin > Setup > Templates > Edit Template: user. Great that you try to fix the 4) point already! |
Name is not a field per se, it's a Page property. You can't add, remove, or move "name" like regular fields, so there's no reason to show it there. Most pages have a field called "title" in addition to the "name" property, and this is another thing entirely. Users don't strictly speaking require titles, though if you need these for display purposes, you can add this field to the user template yourself. |
Okay. Thanks for this info. @ryancramerdesign should I keep this open that the suggested things won't get lost or should I close it? |
Version: Processwire 3.0.33
Installed on: Xampp with Maria DB | PHP 5.6.21
I selected the "blank" profile and set up the database stuff. As username i chose "
_test_
" and continued.A notice that underscores (and I assume dashes) are allowed in this case might be good?
After logging in I went to the user settings and edited my username. Only focus on the username inputfield and remove the focus again. The leading and trailing underscore get's deleted (also happens with dashes and other stuff) though it should not sanitize underscores and dashes.
After changing the username to "test". Profile still says the name is "
_test_
". Only the text in the dropdown menu though. Works after relog as expected.I can't find the "Name" inputfield under templates->user. E-Mail, password, roles are there but no name. What am I missing here?
I just noticed something else while using the backend though I did not check if this was already reported. When hovering over the menu items (especially Access and Modules) from bottom to top with a certain speed the dropdown vanishes and does not reappear until leaving the hover area and reentering it.
Thank you very much for this great CMF/CMS and keep up the awesome work! :)
The text was updated successfully, but these errors were encountered: