Skip to content

GitLab

    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    • Menu
    Projects Groups Snippets
  • Get a free trial
  • Sign up
  • Login
  • Sign in / Register
  • webapp webapp
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 713
    • Issues 713
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 26
    • Merge requests 26
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gitter
  • webappwebapp
  • Issues
  • #1834
Closed
Open
Created Nov 15, 2017 by Eric Eastwood@MadLittleModsOwner

Twitter/GitLab user data not being updated on sign in

For Twitter/GitLab, it looks like we only update the identity that backs the user and not the user itself. This means that if you change your username or avatar, it never gets updated when you sign in again.

  • Calls userService.findOrCreateUserForProvider(twitterUser, twitterIdentity), server/web/strategies/twitter.js#L36
  • findOrCreateUserForProvider upserts the user object with $setOnInsert (I think this should just be $set), server/services/user-service.js#L140

Whereas with GitHub, we update the user object all the time, server/web/strategies/github-user.js#L68


To access Mongo locally:

$ mongo localhost:27017
> use gitter
> db.users.findOne({ username: 'MadLittleMods_gitlab' })
Edited Jan 19, 2021 by Eric Eastwood
Assignee
Assign to
Time tracking