Merge pull request #30693 from open-craft/pooja/fix-page-banner-message-not-seen

[BB-6438] Check if feature is enabled before calling enterprise api
This commit is contained in:
Brian Beggs
2022-07-26 14:42:47 -04:00
committed by GitHub

View File

@@ -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);