mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Change default AutoLogin
This commit is contained in:
parent
2933dd5fa1
commit
f773e6b577
2 changed files with 7 additions and 1 deletions
|
@ -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 = '';
|
||||
|
|
|
@ -15,7 +15,7 @@ class AppSettings {
|
|||
this.set('enableAutoLogin', val.toString());
|
||||
}
|
||||
|
||||
return toBoolean(this.get('enableAutoLogin'), true);
|
||||
return toBoolean(this.get('enableAutoLogin'), false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue