Skip to content

Commit 4e936e4

Browse files
authored
Merge pull request #3940 from Iron-56/fix/github-username-assignment
Generated unique username not applied during account creation
2 parents 83b11a4 + 982c3d3 commit 4e936e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/config/passport.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ passport.use(
223223
const user = new User();
224224
user.email = primaryEmail;
225225
user.github = profile.id;
226-
user.username = profile.username;
226+
user.username = username;
227227
user.tokens.push({ kind: 'github', accessToken });
228228
user.name = profile.displayName;
229229
user.verified = User.EmailConfirmation().Verified;

0 commit comments

Comments
 (0)