- Tweaks
This commit is contained in:
@@ -244,6 +244,7 @@ UserSchema.methods.toAuthJSON = function () {
|
||||
email: this.email,
|
||||
token: this.generateJWT(),
|
||||
user: {
|
||||
id: this._id,
|
||||
nomDeBid: nomDeBid,
|
||||
email: this.email,
|
||||
firstName: this.firstName,
|
||||
@@ -266,6 +267,11 @@ UserSchema.methods.toProfileJSON = function () {
|
||||
email: this.email,
|
||||
firstName: this.firstName,
|
||||
generatedNomDeBid: !hasNomDeBid,
|
||||
hasLinkedApple: !!this.getAuthStrategy('apple'),
|
||||
hasLinkedFacebook: !!this.getAuthStrategy('facebook'),
|
||||
hasLinkedGoogle: !!this.getAuthStrategy('google'),
|
||||
hasLocalAccount: !!this.getAuthStrategy('local'),
|
||||
_id: this.id,
|
||||
isAllowedToBid: this.isAllowedToBid,
|
||||
isOrganizationEmployee: this.isOrganizationEmployee,
|
||||
isVerified: this.isVerified,
|
||||
|
||||
Reference in New Issue
Block a user