mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2024-09-30 04:57:50 +02:00
check microsoft account before loading
This commit is contained in:
parent
3ea5951fd7
commit
4aae403922
@ -350,7 +350,7 @@ function loadAccounts() {
|
||||
(JSON.parse(localStorage.getItem("viaaas_mc_accounts")) || []).forEach(it => {
|
||||
if (it.clientToken) {
|
||||
addActiveAccount(new MojangAccount(it.id, it.name, it.accessToken, it.clientToken))
|
||||
} else if (it.msUser) {
|
||||
} else if (it.msUser && myMSALObj.getAccountByUsername(it.msUser)) {
|
||||
addActiveAccount(new MicrosoftAccount(it.id, it.name, it.accessToken, it.msUser))
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user