1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
This commit is contained in:
RoboMagus 2025-03-30 11:01:13 -04:00 committed by GitHub
commit c4f6c99abd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -229,6 +229,12 @@ export default function (view, params) {
showManualForm(context, true);
} else if (haspw == 'false') {
authenticateUserByName(context, getApiClient(), getTargetUrl(), name, '');
getApiClient().getPublicUsers().then((users) => {
if (users.length >= 2) {
// Disable RememberMe if multiple users exist and no password is used
appSettings.enableAutoLogin(false);
}
});
} else {
context.querySelector('#txtManualName').value = name;
context.querySelector('#txtManualPassword').value = '';

View file

@ -16,7 +16,7 @@ class AppSettings {
this.set('enableAutoLogin', val.toString());
}
return toBoolean(this.get('enableAutoLogin'), true);
return toBoolean(this.get('enableAutoLogin'), false);
}
/**