Skip to content

Commit eb8c153

Browse files
committed
Fix lint errors.
1 parent 70623df commit eb8c153

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

models/users.js

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -488,29 +488,29 @@ if (Meteor.isServer) {
488488
return user;
489489
}
490490

491-
// if (user.services.oidc) {
492-
// const email = user.services.oidc.email.toLowerCase();
493-
//
494-
// user.username = user.services.oidc.username;
495-
// user.emails = [{ address: email, verified: true }];
496-
// const initials = user.services.oidc.fullname.match(/\b[a-zA-Z]/g).join('').toUpperCase();
497-
// user.profile = { initials, fullname: user.services.oidc.fullname };
498-
//
499-
// // see if any existing user has this email address or username, otherwise create new
500-
// const existingUser = Meteor.users.findOne({$or: [{'emails.address': email}, {'username':user.username}]});
501-
// if (!existingUser)
502-
// return user;
503-
//
504-
// // copy across new service info
505-
// const service = _.keys(user.services)[0];
506-
// existingUser.services[service] = user.services[service];
507-
// existingUser.emails = user.emails;
508-
// existingUser.username = user.username;
509-
// existingUser.profile = user.profile;
510-
//
511-
// Meteor.users.remove({_id: existingUser._id}); // remove existing record
512-
// return existingUser;
513-
// }
491+
// if (user.services.oidc) {
492+
// const email = user.services.oidc.email.toLowerCase();
493+
//
494+
// user.username = user.services.oidc.username;
495+
// user.emails = [{ address: email, verified: true }];
496+
// const initials = user.services.oidc.fullname.match(/\b[a-zA-Z]/g).join('').toUpperCase();
497+
// user.profile = { initials, fullname: user.services.oidc.fullname };
498+
//
499+
// // see if any existing user has this email address or username, otherwise create new
500+
// const existingUser = Meteor.users.findOne({$or: [{'emails.address': email}, {'username':user.username}]});
501+
// if (!existingUser)
502+
// return user;
503+
//
504+
// // copy across new service info
505+
// const service = _.keys(user.services)[0];
506+
// existingUser.services[service] = user.services[service];
507+
// existingUser.emails = user.emails;
508+
// existingUser.username = user.username;
509+
// existingUser.profile = user.profile;
510+
//
511+
// Meteor.users.remove({_id: existingUser._id}); // remove existing record
512+
// return existingUser;
513+
// }
514514

515515
if (options.from === 'admin') {
516516
user.createdThroughApi = true;

0 commit comments

Comments
 (0)