agreeToTerms function takes only tosUrl

This commit is contained in:
AJ ONeal 2015-12-15 04:38:30 -08:00
parent 89ef517338
commit d2843113e8
1 changed files with 1 additions and 4 deletions

View File

@ -144,10 +144,7 @@ function registerNewAccount(state, options, cb) {
if (state.termsRequired) { if (state.termsRequired) {
state.termsURL=links['terms-of-service']; state.termsURL=links['terms-of-service'];
options.agreeToTerms({ options.agreeToTerms(state.termsURL, function (err, agree) {
tosUrl: state.termsURL
, email: options.email
}, function (err, agree) {
if (err) { if (err) {
return handleErr(err); return handleErr(err);
} }