mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-05 14:26:06 +02:00
Fix user profile badges and random errors
This commit is contained in:
+10
-1
@@ -119,15 +119,24 @@ export const useAuthStore = defineStore('Auth', () => {
|
||||
loginForm.value.lastUserLoggedIn = lastUserLoggedIn;
|
||||
try {
|
||||
const credentials = JSON.parse(savedCredentials || '{}');
|
||||
// fix goofy typo
|
||||
let edited = false;
|
||||
for (const userId in credentials) {
|
||||
// fix goofy typo
|
||||
if (credentials[userId].loginParmas) {
|
||||
credentials[userId].loginParams =
|
||||
credentials[userId].loginParmas;
|
||||
delete credentials[userId].loginParmas;
|
||||
edited = true;
|
||||
}
|
||||
// fix missing fields
|
||||
if (!credentials[userId].loginParams.endpoint) {
|
||||
credentials[userId].loginParams.endpoint = '';
|
||||
edited = true;
|
||||
}
|
||||
if (!credentials[userId].loginParams.websocket) {
|
||||
credentials[userId].loginParams.websocket = '';
|
||||
edited = true;
|
||||
}
|
||||
}
|
||||
if (edited) {
|
||||
await configRepository.setString(
|
||||
|
||||
Reference in New Issue
Block a user