Supporting the new add email address scheme @lloyd implemented. Simplifying network unit tests.
* email_for_token now returns whether the user needs to set their password. * complete_email_addition now takes a password if necessary. * Update the add_email_address page to support scheme. * Update network.js and user.js to support these schemes. * HUGE simplification of the Network unit tests. Vast reduction in number.
Showing
- resources/static/pages/add_email_address.js 11 additions, 11 deletionsresources/static/pages/add_email_address.js
- resources/static/pages/verify_email_address.js 3 additions, 3 deletionsresources/static/pages/verify_email_address.js
- resources/static/shared/error-messages.js 4 additions, 0 deletionsresources/static/shared/error-messages.js
- resources/static/shared/network.js 12 additions, 5 deletionsresources/static/shared/network.js
- resources/static/shared/user.js 22 additions, 31 deletionsresources/static/shared/user.js
- resources/static/test/qunit/mocks/xhr.js 1 addition, 0 deletionsresources/static/test/qunit/mocks/xhr.js
- resources/static/test/qunit/pages/add_email_address_test.js 2 additions, 11 deletionsresources/static/test/qunit/pages/add_email_address_test.js
- resources/static/test/qunit/shared/network_unit_test.js 89 additions, 272 deletionsresources/static/test/qunit/shared/network_unit_test.js
- resources/static/test/qunit/shared/user_unit_test.js 4 additions, 4 deletionsresources/static/test/qunit/shared/user_unit_test.js
Loading
Please register or sign in to comment