blurts-server icon indicating copy to clipboard operation
blurts-server copied to clipboard

When a user signs up with Firefox Account, their signup_language is blank

Open groovecoder opened this issue 7 years ago • 2 comments

STR:

  1. Set FXA_ENABLED=1
  2. Sign up with Firefox Account
  3. psql blurts
  4. SELECT signup_language FROM subscribers WHERE fxa_profile_json is not null

Expected results:

The Accept-Language value from the browser - e.g., en-US,en;q=0.5

Actual results:

blank value 😢

groovecoder avatar Jan 02 '19 20:01 groovecoder

@sandysage @jsavory

We’ve been setting a subscriber’s language based on their browser’s language when they sign up. With FxA, we get a field in their profile: "locale": "en-US,en;q=0.5". The FxA profile locale comes from the user’s browser when they sign up for FxA.

Should we use the locale value from the user’s FxA profile (from when they signed up for FxA), or should we grab it "fresh" from their browser when they sign up for Monitor?

groovecoder avatar Jan 03 '19 12:01 groovecoder

@groovecoder I think grabbing fresh from the browser sounds more reasonable to me, we want to land on their most recent and well used language. I think its more likely that they've kept the browser language up to date rather than their accounts language.

jsavory avatar Jan 03 '19 17:01 jsavory