From be2b55590ceb714793175446793f8d037db5d3d6 Mon Sep 17 00:00:00 2001 From: Will Daly Date: Thu, 23 Oct 2014 14:19:25 -0400 Subject: [PATCH] Use a 403 status to indicate that the user does not have a linked account for third party auth. --- lms/static/js/student_account/views/LoginView.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lms/static/js/student_account/views/LoginView.js b/lms/static/js/student_account/views/LoginView.js index b0cc38e0e1..7cc5f4944a 100644 --- a/lms/static/js/student_account/views/LoginView.js +++ b/lms/static/js/student_account/views/LoginView.js @@ -73,7 +73,6 @@ var edx = edx || {}; }, saveError: function( error ) { - // console.log(error.status, ' error: ', error.responseText); this.errors = ['
  • ' + error.responseText + '
  • ']; this.setErrors(); @@ -83,13 +82,14 @@ var edx = edx || {}; * 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) { + if ( error.status === 403 && + error.responseText === "third-party-auth" && + this.currentProvider) { this.element.show( this.$alreadyAuthenticatedMsg ); } else { this.element.hide( this.$alreadyAuthenticatedMsg ); // TODO -- display the error } - } });