1
0
Fork 0
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:
Luke Pulverenti 2016-08-20 02:58:35 -04:00
parent 18da0bbdcf
commit 5018f2190b
6 changed files with 43 additions and 20 deletions

View file

@ -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);