Skip to content

Commit

Permalink
Merge pull request #1533 from cewert/enable-rememberme-current-users
Browse files Browse the repository at this point in the history
Enable rememberme global setting for current installs who upgrade
  • Loading branch information
1hitsong authored Nov 24, 2023
2 parents da65693 + 2655d03 commit 86e07cf
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 86e07cf

Please sign in to comment.