Commit d2accb6d by AlasdairSwan

ECOM-369 Added handling of model save errors. Updated FormView to add preRender…

ECOM-369 Added handling of model save errors. Updated FormView to add preRender function to limit amount of duplicate code. Updated PasswordResetModel to return error object when errors occur.
parent be2b5559
......@@ -83,8 +83,8 @@ var edx = edx || {};
* to complete the registration process.
*/
if ( error.status === 403 &&
error.responseText === "third-party-auth" &&
this.currentProvider) {
error.responseText === 'third-party-auth' &&
this.currentProvider ) {
this.element.show( this.$alreadyAuthenticatedMsg );
} else {
this.element.hide( this.$alreadyAuthenticatedMsg );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment