Automatically suggest a username during Persona login.

RESOLVED FIXED in 2013Q3

Status

support.mozilla.org
General
P2
normal
RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: mythmon, Assigned: Pwnna)

Tracking

unspecified
2013Q3

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: u=user c=general p=0 s=2013.18)

(Reporter)

Description

4 years ago
If I sign in with persona and give an email address of SamTheSailor@example.com, the SUMO page that asks for a username should suggest the part of my email before the @, ie: SamTheSailor. This should of course still be editable by the user.

This should be simple, because the user's email should be available, and string manipulation is easy => 1pt. Tossing this in the next sprint, which is probably too full already.
(Assignee)

Comment 1

4 years ago
Should be pretty easy to do. One thing is that we should generate an username that's actually available in case the first suggested option is not available.
Assignee: nobody → shuhao
(Assignee)

Comment 2

4 years ago
One thing: does suggesting mean that we put the username in to the username field pre-filled? Or does it mean we put it somewhere else and if the user clicks that, it populates the username for them?
Flags: needinfo?(mcooper)
(Reporter)

Comment 3

4 years ago
I think it should pre-filled the field.
Flags: needinfo?(mcooper)
(Assignee)

Comment 4

4 years ago
In that case...

PR: https://github.com/mozilla/kitsune/pull/1619
Status: NEW → ASSIGNED
Thanks for doing this, Shuhao. Making this step easier is great, because they have to type in their username exactly once, and then quickly forget about it. The less they think about it the better.
Landed on master:
https://github.com/mozilla/kitsune/commit/735a67b40611d1b4e050135eba3333f680832412
Thanks Shuhao!
Whiteboard: u=user c=general p=1 s=2013.19 → u=user c=general p=0 s=2013.18
And https://github.com/mozilla/kitsune/commit/4861a03867823d0f9c6e973b84b0630a65425787
Deployed to prod. (Although persona is only enabled on stage right now)
Status: ASSIGNED → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
Blocks: 897048
OS: Linux → All
Priority: -- → P2
Hardware: x86_64 → All
Target Milestone: --- → 2013Q3
You need to log in before you can comment on or make changes to this bug.