Skip to content

Commit

Permalink
enable remembeme for current installs who upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert committed Nov 22, 2023
1 parent 922ebd0 commit 2655d03
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/migrations.bs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ sub runGlobalMigrations()
' no longer saving raw password to registry
' auth token and username are now stored in user settings and not global settings

' enable remember me global setting for all devices whos last run version is < 2.0.0
' NOTE: remember me will be disabled for new installs
rememberMe = registry_read("global.rememberme", "Jellyfin")
if not isValid(rememberMe)
' don't overwrite users current setting (dev installs)
set_setting("global.rememberme", "true")
end if
' migrate saved credentials for "active_user" if found
savedUserId = get_setting("active_user")
if isValid(savedUserId)
Expand Down

0 comments on commit 2655d03

Please sign in to comment.