profile.name is called profile.fullname (#615)

The name of the profile field was changed log ago. This fixes the
remaining wrong references.
This commit is contained in:
Alexander Sulfrian 2016-07-11 12:05:03 +02:00 committed by Maxime Quandalle
parent 36f17a5717
commit 855f56c61a
3 changed files with 5 additions and 5 deletions

View file

@ -262,8 +262,8 @@ if (Meteor.isServer) {
Users.before.insert((userId, doc) => {
doc.profile = doc.profile || {};
if (!doc.username && doc.profile.name) {
doc.username = doc.profile.name.toLowerCase().replace(/\s/g, '');
if (!doc.username && doc.profile.fullname) {
doc.username = doc.profile.fullname.toLowerCase().replace(/\s/g, '');
}
});