Skip to content
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

Open
n4imLess opened this issue Sep 5, 2016 · 5 comments
Open

Processwire 3.0.33: Username behavior #2021

n4imLess opened this issue Sep 5, 2016 · 5 comments

Comments

@n4imLess
Copy link

n4imLess commented Sep 5, 2016

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?

  1. 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.

  2. 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.

  3. I can't find the "Name" inputfield under templates->user. E-Mail, password, roles are there but no name. What am I missing here?

  4. 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! :)

@mikerockett
Copy link

mikerockett commented Sep 6, 2016

Quick tip: Markdown is italicising your underscore-wrapped usernames. Better to wrap them in backticks to avoid slight confusion. 😉

@ryancramerdesign
Copy link
Owner

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.

  1. I can't find the "Name" inputfield under templates->user. E-Mail, password, roles are there but no name. What am I missing here?

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.

  1. 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.

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.

@n4imLess
Copy link
Author

n4imLess commented Sep 6, 2016

@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.
Furthermore this "Any combination of letters (a-z), numbers (0-9), dashes or underscores (no spaces)." is to some extend not really correct as "any combination" is not possible...

Something to my 3) point: I am talking about this page: Admin > Setup > Templates > Edit Template: user.
There is no inputfield for the name (title of the page - though title field is not added). I might miss something here still. Sorry! https://puu.sh/r1YAn/52d4476aa0.png

Great that you try to fix the 4) point already!

@teppokoivula
Copy link

teppokoivula commented Sep 7, 2016

Something to my 3) point: I am talking about this page: Admin > Setup > Templates > Edit Template: user.
There is no inputfield for the name (title of the page - though title field is not added). I might miss something here still. Sorry! https://puu.sh/r1YAn/52d4476aa0.png

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.

@n4imLess
Copy link
Author

Okay. Thanks for this info.

@ryancramerdesign should I keep this open that the suggested things won't get lost or should I close it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants