diff --git a/source/api/userauth.brs b/source/api/userauth.brs index 3c697047..0745f4d4 100644 --- a/source/api/userauth.brs +++ b/source/api/userauth.brs @@ -32,7 +32,7 @@ function AboutMe(id = "" as string) end function sub SignOut(deleteSavedEntry = true as boolean) - if deleteSavedEntry = true + if deleteSavedEntry unset_user_setting("token") unset_user_setting("username") end if diff --git a/source/migrations.bs b/source/migrations.bs index 8f51286e..3f6359ea 100644 --- a/source/migrations.bs +++ b/source/migrations.bs @@ -52,7 +52,7 @@ end sub sub runRegistryUserMigrations(version as string) regSections = getRegistrySections() for each section in regSections - if section <> "Jellyfin" + if LCase(section) <> "jellyfin" if version = "1.7.0" print "Running User Registry Migration for 1.7.0" ' now saving LastRunVersion globally and per user so that we can run user specific registry migrations diff --git a/source/utils/config.brs b/source/utils/config.brs index 879e2aa5..cde04fbe 100644 --- a/source/utils/config.brs +++ b/source/utils/config.brs @@ -37,7 +37,7 @@ function RegistryReadAll(section as string) as dynamic registryData = {} for each item in regKeyList ' ignore session related tokens - if item <> "token" and item <> "username" and item <> "password" and item <> "LastRunVersion" + if item <> "token" and item <> "username" and item <> "password" and LCase(item) <> "lastrunversion" if registry.Exists(item) registryData.AddReplace(item, registry.Read(item)) end if @@ -108,7 +108,7 @@ function getSavedUsers() as object savedUsers = [] for each section in registrySections - if section <> "Jellyfin" + if LCase(section) <> "jellyfin" savedUsers.push(section) end if end for