agreeToTerms function takes only tosUrl
This commit is contained in:
parent
89ef517338
commit
d2843113e8
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue