Skip to content

Locale not correct on social login #171

@giorgio93p

Description

@giorgio93p

In fact, this issue has two different cases

  1. Account creation on social login: locale id is not set correctly, it's always the default one. We can easily fix this by overriding allauth's social account adapter (see commit a306b1d).
  2. Social login with existing account: locale cookie is never written (because execution does not pass from our login view for normal logins), so the locale shown after login is the one that it was before login, instead of the one saved in user profile. Since we need a response on which to set the cookie and since each social provider has different urls and views, this can't be fixed equally easily.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions