From 63b0554a52d7abfcc7bf1ca4d0e70ad80940f92e Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 4 Oct 2020 16:48:34 -0400 Subject: [PATCH] Update default from -1 to 0 This was changed in the main PR so that 0 was disabled instead of -1. --- src/controllers/dashboard/users/useredit.html | 2 +- src/controllers/dashboard/users/useredit.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controllers/dashboard/users/useredit.html b/src/controllers/dashboard/users/useredit.html index d501d0ba2..dbf9cc066 100644 --- a/src/controllers/dashboard/users/useredit.html +++ b/src/controllers/dashboard/users/useredit.html @@ -192,7 +192,7 @@
- +
${OptionMaxActiveSessions}
${OptionMaxActiveSessionsHelp}
diff --git a/src/controllers/dashboard/users/useredit.js b/src/controllers/dashboard/users/useredit.js index 08a62ad07..7e80c3884 100644 --- a/src/controllers/dashboard/users/useredit.js +++ b/src/controllers/dashboard/users/useredit.js @@ -102,7 +102,7 @@ import globalize from 'globalize'; $('#chkEnableSharing', page).prop('checked', user.Policy.EnablePublicSharing); $('#txtRemoteClientBitrateLimit', page).val(user.Policy.RemoteClientBitrateLimit / 1e6 || ''); $('#txtLoginAttemptsBeforeLockout', page).val(user.Policy.LoginAttemptsBeforeLockout || '0'); - $('#txtMaxActiveSessions', page).val(user.Policy.MaxActiveSessions || '-1'); + $('#txtMaxActiveSessions', page).val(user.Policy.MaxActiveSessions || '0'); if (ApiClient.isMinServerVersion('10.6.0')) { $('#selectSyncPlayAccess').val(user.Policy.SyncPlayAccess); } @@ -139,7 +139,7 @@ import globalize from 'globalize'; user.Policy.EnableRemoteAccess = $('#chkRemoteAccess', page).is(':checked'); user.Policy.RemoteClientBitrateLimit = parseInt(1e6 * parseFloat($('#txtRemoteClientBitrateLimit', page).val() || '0')); user.Policy.LoginAttemptsBeforeLockout = parseInt($('#txtLoginAttemptsBeforeLockout', page).val() || '0'); - user.Policy.MaxActiveSessions = parseInt($('#txtMaxActiveSessions', page).val() || '-1'); + user.Policy.MaxActiveSessions = parseInt($('#txtMaxActiveSessions', page).val() || '0'); user.Policy.AuthenticationProviderId = page.querySelector('.selectLoginProvider').value; user.Policy.PasswordResetProviderId = page.querySelector('.selectPasswordResetProvider').value; user.Policy.EnableContentDeletion = $('#chkEnableDeleteAllFolders', page).is(':checked');