Skip to content
Snippets Groups Projects
Unverified Commit e620c050 authored by Gabriel Engel's avatar Gabriel Engel
Browse files

Merge branch 'patch-1' of https://github.com/baierjan/Rocket.Chat into baierjan-patch-1

parents 1603531b 40fa0c4a
No related branches found
No related tags found
No related merge requests found
......@@ -110,6 +110,10 @@ Accounts.registerLoginHandler(function(loginRequest) {
if (username) {
newUser.username = username;
}
} else {
if (loginResult.profile.username) {
newUser.username = loginResult.profile.username;
}
}
var userId = Accounts.insertUserDoc({}, newUser);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment