From 67d42747edef751525f3aaa34b347e598a016e74 Mon Sep 17 00:00:00 2001 From: Emily Stark Date: Tue, 18 Mar 2014 09:47:07 -0700 Subject: [PATCH] Whitespace --- packages/accounts-password/password_server.js | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/packages/accounts-password/password_server.js b/packages/accounts-password/password_server.js index a65305733e..8f4b8dd862 100644 --- a/packages/accounts-password/password_server.js +++ b/packages/accounts-password/password_server.js @@ -203,13 +203,15 @@ Meteor.methods({changePassword: function (options) { // be tricky, so we'll settle for just replacing all tokens other than // the one for the current connection. var currentToken = Accounts._getLoginToken(this.connection.id); - Meteor.users.update({_id: this.userId}, - { - $set: { 'services.password.srp': verifier }, - $pull: { - 'services.resume.loginTokens': { hashedToken: { $ne: currentToken } } - } - }); + Meteor.users.update( + { _id: this.userId }, + { + $set: { 'services.password.srp': verifier }, + $pull: { + 'services.resume.loginTokens': { hashedToken: { $ne: currentToken } } + } + } + ); var ret = {passwordChanged: true}; if (serialized) @@ -321,14 +323,14 @@ Accounts.sendEnrollmentEmail = function (userId, email) { }}); var enrollAccountUrl = Accounts.urls.enrollAccount(token); - + var options = { to: email, from: Accounts.emailTemplates.from, subject: Accounts.emailTemplates.enrollAccount.subject(user), text: Accounts.emailTemplates.enrollAccount.text(user, enrollAccountUrl) }; - + if (typeof Accounts.emailTemplates.enrollAccount.html === 'function') options.html = Accounts.emailTemplates.enrollAccount.html(user, enrollAccountUrl); @@ -441,14 +443,14 @@ Accounts.sendVerificationEmail = function (userId, address) { {$push: {'services.email.verificationTokens': tokenRecord}}); var verifyEmailUrl = Accounts.urls.verifyEmail(tokenRecord.token); - + var options = { to: address, from: Accounts.emailTemplates.from, subject: Accounts.emailTemplates.verifyEmail.subject(user), text: Accounts.emailTemplates.verifyEmail.text(user, verifyEmailUrl) }; - + if (typeof Accounts.emailTemplates.verifyEmail.html === 'function') options.html = Accounts.emailTemplates.verifyEmail.html(user, verifyEmailUrl);