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

[5.x]: CP Account menu shows blank space where email address should be #15475

Closed
antcooper opened this issue Aug 5, 2024 · 2 comments
Closed
Assignees
Labels

Comments

@antcooper
Copy link

What happened?

Description

Users other than the initial admin user account have a blank space where the email address should be to link to their profile page.

CleanShot 2024-08-05 at 11 18 08@2x

Steps to reproduce

  1. We have useEmailAsUsername(true) in our general.php config.
  2. Create a new user in the 'Client' group that has control panel access.
  3. Login as that user and there's no text inside the anchor link to their Profile page.

Expected behavior

Users should see their email address in the menu.

Actual behavior

This section is blank. It seems that currentUser.username has no value.

Users can login without issue, but looking in the database the username column is blank for everyone apart from the first admin user.

We created the site whilst Craft 5 was in beta, but have applied updates and now on 5.2.9

Craft CMS version

5.2.9

PHP version

8.3.9

Operating system and version

Linux 6.1.0-22-amd64

Database type and version

MySQL 28.1

Image driver and version

Imagick 3.7.0 (ImageMagick 7.1.1-32)

Installed plugins and versions

"craftcms/ckeditor": "4.1.0",
"nystudio107/craft-seomatic": "5.1.1",
"nystudio107/craft-vite": "5.0.0",
"putyourlightson/craft-sprig": "3.2.0",
"servd/craft-asset-storage": "4.0.6",
@i-just
Copy link
Contributor

i-just commented Aug 5, 2024

Hi, thanks for reporting! I raised a PR for this.

@brandonkelly
Copy link
Member

Craft 4.10.8 and 5.2.10 are out with that fix. Thanks again!

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

No branches or pull requests

3 participants