[buddypress-trac] [BuddyPress Trac] #7932: BP Owner's gMail Address Appears as the Username
buddypress-trac
noreply at wordpress.org
Thu Jul 19 16:30:41 UTC 2018
#7932: BP Owner's gMail Address Appears as the Username
--------------------------+------------------------------
Reporter: pastordatm | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Core | Version: 3.0.0
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by boonebgorges):
Hello - Thanks for the report!
When creating a user account, BuddyPress (and WordPress) ask you to
provide a username. It is not generated automatically. For example, see
[attachment:"Screenshot_2018-07-19_11-24-52.png"], which is a screenshot
from https://datm.org/register/. Likewise, if you create an account via
Dashboard > Users, you'll be prompted to enter the username manually.
If you're using email addresses as usernames, then the "truncation" you've
described - `pastordatmgmail-com` - is expected behavior. @-mentions and
profile URLs are built using what's called in WordPress the
"user_nicename", which is generally a version of the user_login (ie the
username) that is URL-friendly. In your case, this means removing the @
sign, and replacing the `.` with a `-`.
If you'd like to prevent users from entering an email address when
creating a username, you might consider a plugin like
https://wordpress.org/plugins/restrict-usernames/, which I think will work
with BuddyPress.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7932#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list