Fix password change during parental schedule

This commit is contained in:
David Ullmer
2022-06-26 12:43:17 +02:00
parent d342b79218
commit 7efa4e38c1
3 changed files with 8 additions and 5 deletions

View File

@@ -382,7 +382,8 @@ namespace Jellyfin.Server.Implementations.Users
string password,
string passwordSha1,
string remoteEndPoint,
bool isUserSession)
bool isUserSession,
bool ignoreParentalSchedule = false)
{
if (string.IsNullOrWhiteSpace(username))
{
@@ -458,7 +459,7 @@ namespace Jellyfin.Server.Implementations.Users
throw new SecurityException("Forbidden.");
}
if (!user.IsParentalScheduleAllowed())
if (!ignoreParentalSchedule && !user.IsParentalScheduleAllowed())
{
_logger.LogInformation(
"Authentication request for {UserName} is not allowed at this time due parental restrictions (IP: {IP}).",