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
I'm using cakedc/users on a website where I don't need first names or usernames, I'm only using emails. That breaks $this->User->welcome() because it expects either first name or username:
In my case, the above (predictably) outputs "*Welcome, *".
I acknowledge this is kind of an edge case because I had to specifically hack the Users table rules a little so that it doesn't require a username. But at the same time, I've seen other issues where people want to use email instead of username, and that has even made it into the docs.
So maybe the helper should default to email either if the config says the email is preferred, or if every other way to address the user is empty.
The text was updated successfully, but these errors were encountered:
I'm using cakedc/users on a website where I don't need first names or usernames, I'm only using emails. That breaks
$this->User->welcome()
because it expects either first name or username:users/src/View/Helper/UserHelper.php
Lines 130 to 137 in 9f9f49b
In my case, the above (predictably) outputs "*Welcome, *".
I acknowledge this is kind of an edge case because I had to specifically hack the Users table rules a little so that it doesn't require a username. But at the same time, I've seen other issues where people want to use email instead of username, and that has even made it into the docs.
So maybe the helper should default to email either if the config says the email is preferred, or if every other way to address the user is empty.
The text was updated successfully, but these errors were encountered: