summaryrefslogtreecommitdiffstats
path: root/collections/users.js
diff options
context:
space:
mode:
Diffstat (limited to 'collections/users.js')
-rw-r--r--collections/users.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/collections/users.js b/collections/users.js
index 1dcccf12..54c0a298 100644
--- a/collections/users.js
+++ b/collections/users.js
@@ -33,13 +33,10 @@ Users.helpers({
});
Users.before.insert(function(userId, doc) {
- doc.profile = {};
+ doc.profile = doc.profile || {};
// connect profile.status default
doc.profile.status = 'offline';
-
- // slugify to username
- //doc.username = getSlug(doc.profile.name, '');
});
if (Meteor.isServer) {