mario-core 2.9.415-feedback → 2.9.416-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 +9 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +9 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -39650,7 +39650,7 @@ var BlockLogin = function BlockLogin(_ref) {
|
|
|
39650
39650
|
|
|
39651
39651
|
var onSuccessGoogle = function onSuccessGoogle(res) {
|
|
39652
39652
|
if (!!(res !== null && res !== void 0 && res.accessToken)) {
|
|
39653
|
-
var _hostName$split, _email$split;
|
|
39653
|
+
var _hostName$split, _email$split, _extensionEmail$split, _extensionEmail$split2;
|
|
39654
39654
|
|
|
39655
39655
|
var _res$profileObj = res.profileObj,
|
|
39656
39656
|
email = _res$profileObj.email,
|
|
@@ -39663,8 +39663,15 @@ var BlockLogin = function BlockLogin(_ref) {
|
|
|
39663
39663
|
var hostName = window.location.hostname;
|
|
39664
39664
|
var subDomain = (_hostName$split = hostName.split(".marioforme.com")) === null || _hostName$split === void 0 ? void 0 : _hostName$split[0];
|
|
39665
39665
|
var emailDomain = (_email$split = email.split("@")) === null || _email$split === void 0 ? void 0 : _email$split[1];
|
|
39666
|
+
var matchExtension = extensionEmail === null || extensionEmail === void 0 ? void 0 : (_extensionEmail$split = extensionEmail.split(",")) === null || _extensionEmail$split === void 0 ? void 0 : (_extensionEmail$split2 = _extensionEmail$split.map(function (x) {
|
|
39667
|
+
return x.trim();
|
|
39668
|
+
})) === null || _extensionEmail$split2 === void 0 ? void 0 : _extensionEmail$split2.filter(function (x) {
|
|
39669
|
+
return x;
|
|
39670
|
+
}).some(function (ext) {
|
|
39671
|
+
return emailDomain.includes(ext);
|
|
39672
|
+
});
|
|
39666
39673
|
|
|
39667
|
-
if (!emailDomain.includes(subDomain) && !
|
|
39674
|
+
if (!emailDomain.includes(subDomain) && !matchExtension) {
|
|
39668
39675
|
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");
|
|
39669
39676
|
return;
|
|
39670
39677
|
}
|