From fcb6dc42fb9ee8b3bec288aa09e9826d0d4bbd01 Mon Sep 17 00:00:00 2001
From: creeper123123321 <7974274+creeper123123321@users.noreply.github.com>
Date: Wed, 1 Dec 2021 20:55:01 -0300
Subject: [PATCH] update msal-browser, prompt select_account
---
src/main/resources/web/index.html | 4 ++--
src/main/resources/web/js/page.js | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/main/resources/web/index.html b/src/main/resources/web/index.html
index df52149..707f627 100644
--- a/src/main/resources/web/index.html
+++ b/src/main/resources/web/index.html
@@ -40,8 +40,8 @@ script-src 'self' https://*.cloudflare.com/ https://alcdn.msauth.net/ https://*.
-
diff --git a/src/main/resources/web/js/page.js b/src/main/resources/web/js/page.js
index 0b2f6c4..9607e1c 100644
--- a/src/main/resources/web/js/page.js
+++ b/src/main/resources/web/js/page.js
@@ -581,7 +581,7 @@ function loginMc(user, pass) {
$("#form_add_mc input").val("");
}
-const loginRequest = {scopes: ["XboxLive.signin"]};
+const loginRequest = {scopes: ["XboxLive.signin"], prompt: "select_account"};
let redirectUrl = "https://viaversion.github.io/VIAaaS/src/main/resources/web/";
if (location.hostname === "localhost" || whitelistedOrigin.includes(location.origin)) {
redirectUrl = location.origin + location.pathname;