diff --git a/src/scripts/useredit.js b/src/scripts/useredit.js index 96003fb74d..356a93c4e7 100644 --- a/src/scripts/useredit.js +++ b/src/scripts/useredit.js @@ -22,10 +22,14 @@ define(["jQuery", "loading", "libraryMenu", "fnchecked"], function($, loading, l } function loadPasswordResetProviders(page, user, providers) { - providers.length > 1 && !user.Policy.IsAdministrator ? page.querySelector(".fldSelectPasswordResetProvider").classList.remove("hide") : page.querySelector(".fldSelectPasswordResetProvider").classList.add("hide"); + if (providers.length > 1 && !user.Policy.IsAdministrator) { + page.querySelector(".fldSelectPasswordResetProvider").classList.remove("hide"); + } else { + page.querySelector(".fldSelectPasswordResetProvider").classList.add("hide"); + } var currentProviderId = user.Policy.PasswordResetProviderId; page.querySelector(".selectPasswordResetProvider").innerHTML = providers.map(function(provider) { - var selected = provider.Id === currentProviderId || providers.length < 2 ? " selected" : ""; + var selected = (provider.Id === currentProviderId || providers.length < 2) ? " selected" : ""; return '" }) } diff --git a/src/strings/en-us.json b/src/strings/en-us.json index 38da20bc12..c65eab375c 100644 --- a/src/strings/en-us.json +++ b/src/strings/en-us.json @@ -964,7 +964,7 @@ "MessageNoServersAvailableToConnect": "No servers are available to connect to. If you've been invited to share a server, make sure to accept it below or by clicking the link in the email.", "MessageNoTrailersFound": "No trailers found. Install the Trailer channel to enhance your movie experience by adding a library of internet trailers.", "MessageNothingHere": "Nothing here.", - "MessagePasswordResetForUsers": "The following users have had their passwords reset. They can now sign in with the PIN code that was used this reset.", + "MessagePasswordResetForUsers": "The following users have had their passwords reset. They can now sign in with the PIN codes that were used to perform the reset.", "MessagePlayAccessRestricted": "Playback of this content is currently restricted. Please contact your Jellyfin Server administrator for more information.", "MessagePleaseEnsureInternetMetadata": "Please ensure downloading of internet metadata is enabled.", "MessagePleaseWait": "Please wait. This may take a minute.",