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) {
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue