diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2016-07-11 12:05:03 +0200 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2016-07-11 12:05:03 +0200 |
commit | 855f56c61a39b03442c4962e3afabd80f7fcd721 (patch) | |
tree | bbf99e40cac830f1b96b83202682419f9f0b7644 /models/users.js | |
parent | 36f17a57171bce23840f67c89ef25361cd2b49f6 (diff) | |
download | wekan-855f56c61a39b03442c4962e3afabd80f7fcd721.tar.gz wekan-855f56c61a39b03442c4962e3afabd80f7fcd721.tar.bz2 wekan-855f56c61a39b03442c4962e3afabd80f7fcd721.zip |
profile.name is called profile.fullname (#615)
The name of the profile field was changed log ago. This fixes the
remaining wrong references.
Diffstat (limited to 'models/users.js')
-rw-r--r-- | models/users.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/users.js b/models/users.js index 4e4a0fac..b45dedd2 100644 --- a/models/users.js +++ b/models/users.js @@ -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, ''); } }); |