fix: if we don't have a key stored, abort

This commit is contained in:
Derrick Hammer 2023-07-20 02:46:12 -04:00
parent 2bd7235929
commit 20641e35d3
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 5 additions and 0 deletions

View File

@ -25,6 +25,11 @@ export function boot() {
return;
}
if (!userKey) {
sendAuthUpdate();
return;
}
log("user is already logged in, attempting to load kernel");
setActivePortalMasterKey(userKey);
setLoginComplete(true);