diff --git a/lms/static/js/student_account/views/AccessView.js b/lms/static/js/student_account/views/AccessView.js index c460f3b907..295b355b40 100644 --- a/lms/static/js/student_account/views/AccessView.js +++ b/lms/static/js/student_account/views/AccessView.js @@ -173,7 +173,7 @@ this.listenTo(this.subview.login, 'password-help', this.resetPassword); // Listen for 'auth-complete' event so we can enroll/redirect the user appropriately. - if (!isTpaSaml) { + if (this.isEnterpriseEnable == true && !isTpaSaml) { this.listenTo(this.subview.login, 'auth-complete', this.loginComplete); } else { this.listenTo(this.subview.login, 'auth-complete', this.authComplete);