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.
This commit is contained in:
@@ -81,10 +81,10 @@ var edx = edx || {};
|
||||
* linked the account to an EdX account. In this case,
|
||||
* we need to prompt the user to enter a little more information
|
||||
* 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 );
|
||||
|
||||
Reference in New Issue
Block a user