mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-13 19:20:23 +01:00
Fix password change during parental schedule
This commit is contained in:
@@ -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}).",
|
||||
|
||||
Reference in New Issue
Block a user