Profile data defaults to empty string to prevent value of undefined on account page

This commit is contained in:
Sahat Yalkabov
2013-12-06 00:03:07 -05:00
parent 4d92ad9d16
commit 9c389c1afb

View File

@ -16,11 +16,11 @@ var userSchema = new mongoose.Schema({
// Optional profile information
profile: {
name: String,
email: String,
location: String,
website: String,
picture: String
name: { type: String, default: '' },
email: { type: String, default: '' },
location: { type: String, default: '' },
website: { type: String, default: '' },
picture: { type: String, default: '' }
},
// API access tokens