diff --git a/resources/static/common/js/network.js b/resources/static/common/js/network.js index 5f8a77cec4e658ccc96f47b03adcc7fbc2616cba..ee7de6e0cbaeb01a0e44f7a05757a5a4bb70b0a5 100644 --- a/resources/static/common/js/network.js +++ b/resources/static/common/js/network.js @@ -325,7 +325,7 @@ BrowserID.Network = (function() { * with one boolean parameter that specifies the validity of the token. * @param {function} [onFailure] - Called on XHR failure. */ - completeEmailRegistration: completeAddressVerification.curry("/wsapi/complete_email_addition"), + completeEmailRegistration: completeAddressVerification.curry("/wsapi/complete_email_confirmation"), /** * Request a password reset for the given email address. diff --git a/resources/static/test/mocks/xhr.js b/resources/static/test/mocks/xhr.js index ecb7c6b883b4bd93b219849be09c58b906ef3fce..99116c22ffabfc7240808018866584c1226a2b7e 100644 --- a/resources/static/test/mocks/xhr.js +++ b/resources/static/test/mocks/xhr.js @@ -53,10 +53,10 @@ BrowserID.Mocks.xhr = (function() { "post /wsapi/cert_key valid": random_cert, "post /wsapi/cert_key invalid": undefined, "post /wsapi/cert_key ajaxError": undefined, - "post /wsapi/complete_email_addition valid": { success: true }, - "post /wsapi/complete_email_addition badPassword": 401, - "post /wsapi/complete_email_addition invalid": { success: false }, - "post /wsapi/complete_email_addition ajaxError": undefined, + "post /wsapi/complete_email_confirmation valid": { success: true }, + "post /wsapi/complete_email_confirmation badPassword": 401, + "post /wsapi/complete_email_confirmation invalid": { success: false }, + "post /wsapi/complete_email_confirmation ajaxError": undefined, "post /wsapi/stage_user unknown_secondary": { success: true }, "post /wsapi/stage_user valid": { success: true }, "post /wsapi/stage_user invalid": { success: false }, @@ -86,11 +86,6 @@ BrowserID.Mocks.xhr = (function() { "post /wsapi/stage_reverify throttle": 429, "post /wsapi/stage_reverify ajaxError": undefined, - "post /wsapi/complete_reverify valid": { success: true }, - "post /wsapi/complete_reverify badPassword": 401, - "post /wsapi/complete_reverify invalid": { success: false }, - "post /wsapi/complete_reverify ajaxError": undefined, - "get /wsapi/email_reverify_status?email=registered%40testuser.com pending": { status: "pending" }, "get /wsapi/email_reverify_status?email=registered%40testuser.com complete": { status: "complete", userid: 4 }, "get /wsapi/email_reverify_status?email=registered%40testuser.com mustAuth": { status: "mustAuth" },