mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add remember me option
This commit is contained in:
parent
18da0bbdcf
commit
5018f2190b
6 changed files with 43 additions and 20 deletions
|
@ -1,9 +1,11 @@
|
|||
define([], function () {
|
||||
define(['appSettings'], function (appSettings) {
|
||||
|
||||
function login(page, username, password) {
|
||||
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
appSettings.enableAutoLogin(true);
|
||||
|
||||
ConnectionManager.loginToConnect(username, password).then(function () {
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
|
@ -77,7 +79,11 @@
|
|||
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
ConnectionManager.connect().then(function (result) {
|
||||
ConnectionManager.connect({
|
||||
|
||||
enableAutoLogin: appSettings.enableAutoLogin()
|
||||
|
||||
}).then(function (result) {
|
||||
|
||||
handleConnectionResult(page, result);
|
||||
|
||||
|
@ -177,7 +183,11 @@
|
|||
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
ConnectionManager.connectToAddress(host).then(function (result) {
|
||||
ConnectionManager.connectToAddress(host, {
|
||||
|
||||
enableAutoLogin: appSettings.enableAutoLogin()
|
||||
|
||||
}).then(function (result) {
|
||||
|
||||
handleConnectionResult(page, result);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue