mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2024-11-15 10:55:27 +01:00
update msal-browser, prompt select_account
This commit is contained in:
parent
3f16486a71
commit
fcb6dc42fb
@ -40,8 +40,8 @@ script-src 'self' https://*.cloudflare.com/ https://alcdn.msauth.net/ https://*.
|
||||
<script defer crossorigin="anonymous"
|
||||
integrity="sha512-UNM1njAgOFUa74Z0bADwAq8gbTcqZC8Ej4xPSzpnh0l6KMevwvkBvbldF9uR++qKeJ+MOZHRjV1HZjoRvjDfNQ=="
|
||||
src="https://cdnjs.cloudflare.com/ajax/libs/uuid/8.3.2/uuid.min.js"></script>
|
||||
<script defer src="https://alcdn.msauth.net/browser/2.17.0/js/msal-browser.min.js"
|
||||
integrity="sha384-nPvMTGGQIdPr+oK09URmAR99LAk9PEVLJE+RJfjIH/QADFbVgGlF9tFdVbgSYC+c"
|
||||
<script defer src="https://alcdn.msauth.net/browser/2.19.0/js/msal-browser.min.js"
|
||||
integrity="sha384-VK+6hHt27itNFksZdEeXofJXdAhmlizHbC/a1TUUJm/Yq6gOuAjXKkiiCaGbFsnd"
|
||||
crossorigin="anonymous"></script>
|
||||
<script defer src="js/config.js"></script>
|
||||
<script defer src="js/page.js"></script>
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user