From d2843113e8a9bbc803aad6189ac0164f043cdb6e Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 15 Dec 2015 04:38:30 -0800 Subject: [PATCH] agreeToTerms function takes only tosUrl --- lib/client.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/client.js b/lib/client.js index f86bfff..ec4d26f 100644 --- a/lib/client.js +++ b/lib/client.js @@ -144,10 +144,7 @@ function registerNewAccount(state, options, cb) { if (state.termsRequired) { state.termsURL=links['terms-of-service']; - options.agreeToTerms({ - tosUrl: state.termsURL - , email: options.email - }, function (err, agree) { + options.agreeToTerms(state.termsURL, function (err, agree) { if (err) { return handleErr(err); }