mario-core 2.9.227-sso → 2.9.228-sso
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 +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20054,7 +20054,7 @@ var BASE_URL = function () {
|
|
|
20054
20054
|
var url = windowUrl.split("//")[0] + "//" + windowUrl.split("//")[1].split("/")[0];
|
|
20055
20055
|
return url;
|
|
20056
20056
|
}();
|
|
20057
|
-
var isLocalhost = Boolean(window.location.hostname === "localhost" || window.location.hostname.includes("stage") || window.location.hostname === "[::1]" || window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));
|
|
20057
|
+
var isLocalhost = Boolean(window.location.hostname === "localhost" || window.location.hostname.includes("stage") || window.location.hostname.includes("brightsoft") || window.location.hostname === "[::1]" || window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));
|
|
20058
20058
|
var QUESTION_TYPES_OPTIONS = [{
|
|
20059
20059
|
label: "Single choice",
|
|
20060
20060
|
value: "SingleChoice"
|
|
@@ -38328,7 +38328,7 @@ var msalConfig = {
|
|
|
38328
38328
|
auth: {
|
|
38329
38329
|
clientId: "90c6897c-f17b-475e-a7a8-9a19651e0060",
|
|
38330
38330
|
authority: "https://login.microsoftonline.com/common",
|
|
38331
|
-
redirectUri:
|
|
38331
|
+
redirectUri: "https://microsoft.marioforme.com/microsoft-login.html"
|
|
38332
38332
|
},
|
|
38333
38333
|
cache: {
|
|
38334
38334
|
cacheLocation: "sessionStorage",
|
|
@@ -38858,7 +38858,7 @@ var useLogin = function useLogin() {
|
|
|
38858
38858
|
var _temp39 = function () {
|
|
38859
38859
|
if (accounts.length === 0) {
|
|
38860
38860
|
console.log(school.schoolId);
|
|
38861
|
-
var domainRedirect = isLocalhost ? "https://brightsoft.marioforme.com" : "https://microsoft
|
|
38861
|
+
var domainRedirect = isLocalhost ? "https://brightsoft.marioforme.com" : "https://microsoft.marioforme.com";
|
|
38862
38862
|
window.location.href = (window.location.hostname === "localhost" ? "https://localhost:5001" : domainRedirect) + ("/microsoft-login.html?redirect-uri=" + window.location.href + "&schoolId=" + school.schoolId);
|
|
38863
38863
|
} else {
|
|
38864
38864
|
var currentAccount = accounts[0];
|