mario-core 1.2.10-es-release → 1.2.11-es-release

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -23147,7 +23147,7 @@ var BlockLogin = function BlockLogin(_ref) {
23147
23147
  var subDomain = hostName === null || hostName === void 0 ? void 0 : (_hostName$split = hostName.split(".marioforme.com")) === null || _hostName$split === void 0 ? void 0 : (_hostName$split$ = _hostName$split[0]) === null || _hostName$split$ === void 0 ? void 0 : _hostName$split$.replace(/-es$|^es-/, "");
23148
23148
  var emailDomain = (_email$split = email.split("@")) === null || _email$split === void 0 ? void 0 : _email$split[1];
23149
23149
 
23150
- if (!emailDomain.includes(subDomain) && !emailDomain.includes(extensionEmail || subDomain)) {
23150
+ if (!emailDomain.includes(subDomain) && !emailDomain.includes(!(extensionEmail !== null && extensionEmail !== void 0 && extensionEmail.trim()) ? subDomain : extensionEmail)) {
23151
23151
  alert("The email address you used does not match the login information in the database. Please check that you are using your school assigned email address to log into MARIO for Me. If you have further trouble please notify your school site administrator");
23152
23152
  return;
23153
23153
  }