[wp-trac] [WordPress Trac] #58311: Validate Username for not to be a email and strip everything after @
WordPress Trac
noreply at wordpress.org
Thu Jun 8 19:33:57 UTC 2023
#58311: Validate Username for not to be a email and strip everything after @
-------------------------------------------------+-------------------------
Reporter: oglekler | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Login and Registration | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing needs-unit- | Focuses:
tests 2nd-opinion |
-------------------------------------------------+-------------------------
Changes (by costdev):
* keywords: has-patch needs-testing needs-unit-tests => has-patch needs-
testing needs-unit-tests 2nd-opinion
Comment:
Depending on how this is being used, it may be considered a backward
compatibility break if email addresses can't be used as usernames anymore.
It may therefore be preferable to keep the `@` as an allowed character,
but have a filter where someone could provide allowed characters and
exclude `@` if they wish.
Adding `2nd-opinion` to gather some additional thoughts on whether this
should be considered a backward compatibility break, and whether that's
ok, or if we should let the user decide if they want to change the status
quo.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58311#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list