Skip to content
This repository was archived by the owner on Aug 30, 2021. It is now read-only.

Commit 880ad6a

Browse files
committed
Spliting Strategies
1 parent 22d0e7a commit 880ad6a

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

app/models/user.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ var UserSchema = new Schema({
3030
type: String,
3131
default: '',
3232
trim: true,
33-
unique: true
3433
},
3534
username: {
3635
type: String,

config/strategies/google.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module.exports = function() {
2222
lastName: profile.name.familyName,
2323
displayName: profile.displayName,
2424
email: profile.emails[0].value,
25-
username: profile.username,
25+
username: profile.emails[0].value,
2626
provider: 'google',
2727
providerData: profile._json
2828
});

config/strategies/linkedin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = function() {
2323
lastName: profile.name.familyName,
2424
displayName: profile.displayName,
2525
email: profile.emails[0].value,
26-
username: profile.username,
26+
username: profile.emails[0].value,
2727
provider: 'linkedin',
2828
providerData: profile._json
2929
});

0 commit comments

Comments
 (0)