changes
This commit is contained in:
@@ -69,10 +69,10 @@ async function checkRedirect() {
|
||||
}
|
||||
|
||||
async function checkLogin() {
|
||||
if ($store.login ? $store.login.token : false) {
|
||||
if ($store.login?.token) {
|
||||
$store.commit("rights", await $getdata("grouprights", { filter: { group: $store.login.type } }));
|
||||
let authtoken = await $getdata("token", { first: true, filter: { token: $store.login.token } });
|
||||
if (authtoken ? authtoken.expiry : true) return; /* $requestLogin(); */
|
||||
const authtoken = await $getdata("token", { first: true, filter: { token: $store.login.token } });
|
||||
if (authtoken?.expiry) return; /* $requestLogin(); */
|
||||
authorized.value = true;
|
||||
}
|
||||
// else $requestLogin();
|
||||
|
||||
Reference in New Issue
Block a user