Fixed issue with social accounts with empty name
This commit is contained in:
		| @@ -6,6 +6,7 @@ | |||||||
|  |  | ||||||
| [](https://github.com/Requarks/wiki/releases) | [](https://github.com/Requarks/wiki/releases) | ||||||
| [](https://github.com/requarks/wiki/blob/master/LICENSE) | [](https://github.com/requarks/wiki/blob/master/LICENSE) | ||||||
|  | [](https://github.com/Requarks/wiki/releases/latest) | ||||||
| [](https://travis-ci.org/Requarks/wiki) | [](https://travis-ci.org/Requarks/wiki) | ||||||
| [](https://www.codacy.com/app/Requarks/wiki) | [](https://www.codacy.com/app/Requarks/wiki) | ||||||
| [](https://gemnasium.com/github.com/Requarks/wiki) | [](https://gemnasium.com/github.com/Requarks/wiki) | ||||||
| @@ -42,7 +43,7 @@ | |||||||
| - [x] Documentation | - [x] Documentation | ||||||
| 	- [x] Prerequisites | 	- [x] Prerequisites | ||||||
| 	- [x] Install | 	- [x] Install | ||||||
| 	- [ ] Authentication | 	- [x] Authentication | ||||||
| 	- [x] Git | 	- [x] Git | ||||||
| 	- [x] Upgrade | 	- [x] Upgrade | ||||||
| - [x] Edit Entry | - [x] Edit Entry | ||||||
|   | |||||||
| @@ -65,7 +65,7 @@ userSchema.statics.processProfile = (profile) => { | |||||||
| 		email: primaryEmail, | 		email: primaryEmail, | ||||||
| 		provider: profile.provider, | 		provider: profile.provider, | ||||||
| 		providerId: profile.id, | 		providerId: profile.id, | ||||||
| 		name: profile.displayName | 		name: profile.displayName || _.split(primaryEmail, '@')[0] | ||||||
| 	}, { | 	}, { | ||||||
| 		new: true, | 		new: true, | ||||||
| 		upsert: true | 		upsert: true | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user