mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-27 10:43:48 +02:00
Stop autologin on logout
This commit is contained in:
@@ -386,9 +386,12 @@ import gameLogService from './service/gamelog.js'
|
|||||||
}
|
}
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
if ((status === 401) && (data.error.message === '"Missing Credentials"') && (this.pendingGetRequests.size <= 1)) {
|
if ((status === 401) && (data.error.message === '"Missing Credentials"') && ($app.isAutoLogin)) {
|
||||||
|
if (endpoint.substring(0, 10) == 'auth/user?') {
|
||||||
this.$emit('AUTOLOGIN');
|
this.$emit('AUTOLOGIN');
|
||||||
}
|
}
|
||||||
|
throw new Error('401: Missing Credentials');
|
||||||
|
}
|
||||||
if (data.error === Object(data.error)) {
|
if (data.error === Object(data.error)) {
|
||||||
this.$throw(
|
this.$throw(
|
||||||
data.error.status_code || status,
|
data.error.status_code || status,
|
||||||
@@ -3680,7 +3683,6 @@ import gameLogService from './service/gamelog.js'
|
|||||||
};
|
};
|
||||||
|
|
||||||
API.$on('AUTOLOGIN', function () {
|
API.$on('AUTOLOGIN', function () {
|
||||||
if ($app.isAutoLogin) {
|
|
||||||
var user = $app.loginForm.savedCredentials[$app.loginForm.lastUserLoggedIn]
|
var user = $app.loginForm.savedCredentials[$app.loginForm.lastUserLoggedIn]
|
||||||
if (user !== undefined) {
|
if (user !== undefined) {
|
||||||
$app.relogin({
|
$app.relogin({
|
||||||
@@ -3693,7 +3695,6 @@ import gameLogService from './service/gamelog.js'
|
|||||||
}).show();
|
}).show();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$app.data.loginForm = {
|
$app.data.loginForm = {
|
||||||
|
|||||||
Reference in New Issue
Block a user