Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 855911333a | |||
| 127bfc7d3b | |||
| 7919dd81da | |||
| e1da046960 | |||
| a756026962 | |||
| 75260a960b | |||
| 69ee49bee6 |
@@ -24,6 +24,7 @@
|
|||||||
- [Lynxy](https://github.com/Lynxy)
|
- [Lynxy](https://github.com/Lynxy)
|
||||||
- [fasheng](https://github.com/fasheng)
|
- [fasheng](https://github.com/fasheng)
|
||||||
- [ploughpuff](https://github.com/ploughpuff)
|
- [ploughpuff](https://github.com/ploughpuff)
|
||||||
|
- [pjeanjean](https://github.com/pjeanjean)
|
||||||
|
|
||||||
# Emby Contributors
|
# Emby Contributors
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -21,7 +21,7 @@ RUN apt-get update \
|
|||||||
COPY --from=ffmpeg / /
|
COPY --from=ffmpeg / /
|
||||||
COPY --from=builder /jellyfin /jellyfin
|
COPY --from=builder /jellyfin /jellyfin
|
||||||
|
|
||||||
ARG JELLYFIN_WEB_VERSION=10.3.3
|
ARG JELLYFIN_WEB_VERSION=10.3.4
|
||||||
RUN curl -L https://github.com/jellyfin/jellyfin-web/archive/v${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf - \
|
RUN curl -L https://github.com/jellyfin/jellyfin-web/archive/v${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf - \
|
||||||
&& rm -rf /jellyfin/jellyfin-web \
|
&& rm -rf /jellyfin/jellyfin-web \
|
||||||
&& mv jellyfin-web-${JELLYFIN_WEB_VERSION} /jellyfin/jellyfin-web
|
&& mv jellyfin-web-${JELLYFIN_WEB_VERSION} /jellyfin/jellyfin-web
|
||||||
|
|||||||
+1
-1
@@ -30,7 +30,7 @@ RUN apt-get update \
|
|||||||
&& chmod 777 /cache /config /media
|
&& chmod 777 /cache /config /media
|
||||||
COPY --from=builder /jellyfin /jellyfin
|
COPY --from=builder /jellyfin /jellyfin
|
||||||
|
|
||||||
ARG JELLYFIN_WEB_VERSION=10.3.3
|
ARG JELLYFIN_WEB_VERSION=10.3.4
|
||||||
RUN curl -L https://github.com/jellyfin/jellyfin-web/archive/v${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf - \
|
RUN curl -L https://github.com/jellyfin/jellyfin-web/archive/v${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf - \
|
||||||
&& rm -rf /jellyfin/jellyfin-web \
|
&& rm -rf /jellyfin/jellyfin-web \
|
||||||
&& mv jellyfin-web-${JELLYFIN_WEB_VERSION} /jellyfin/jellyfin-web
|
&& mv jellyfin-web-${JELLYFIN_WEB_VERSION} /jellyfin/jellyfin-web
|
||||||
|
|||||||
+1
-1
@@ -31,7 +31,7 @@ RUN apt-get update \
|
|||||||
&& chmod 777 /cache /config /media
|
&& chmod 777 /cache /config /media
|
||||||
COPY --from=builder /jellyfin /jellyfin
|
COPY --from=builder /jellyfin /jellyfin
|
||||||
|
|
||||||
ARG JELLYFIN_WEB_VERSION=10.3.3
|
ARG JELLYFIN_WEB_VERSION=10.3.4
|
||||||
RUN curl -L https://github.com/jellyfin/jellyfin-web/archive/v${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf - \
|
RUN curl -L https://github.com/jellyfin/jellyfin-web/archive/v${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf - \
|
||||||
&& rm -rf /jellyfin/jellyfin-web \
|
&& rm -rf /jellyfin/jellyfin-web \
|
||||||
&& mv jellyfin-web-${JELLYFIN_WEB_VERSION} /jellyfin/jellyfin-web
|
&& mv jellyfin-web-${JELLYFIN_WEB_VERSION} /jellyfin/jellyfin-web
|
||||||
|
|||||||
@@ -165,6 +165,34 @@ namespace Emby.Server.Implementations.Library
|
|||||||
return user.Password;
|
return user.Password;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void ChangeEasyPassword(User user, string newPassword, string newPasswordHash)
|
||||||
|
{
|
||||||
|
ConvertPasswordFormat(user);
|
||||||
|
|
||||||
|
if (newPassword != null)
|
||||||
|
{
|
||||||
|
newPasswordHash = string.Format("$SHA1${0}", GetHashedString(user, newPassword));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (string.IsNullOrWhiteSpace(newPasswordHash))
|
||||||
|
{
|
||||||
|
throw new ArgumentNullException(nameof(newPasswordHash));
|
||||||
|
}
|
||||||
|
|
||||||
|
user.EasyPassword = newPasswordHash;
|
||||||
|
}
|
||||||
|
|
||||||
|
public string GetEasyPasswordHash(User user)
|
||||||
|
{
|
||||||
|
// This should be removed in the future. This was added to let user login after
|
||||||
|
// Jellyfin 10.3.3 failed to save a well formatted PIN.
|
||||||
|
ConvertPasswordFormat(user);
|
||||||
|
|
||||||
|
return string.IsNullOrEmpty(user.EasyPassword)
|
||||||
|
? null
|
||||||
|
: (new PasswordHash(user.EasyPassword)).Hash;
|
||||||
|
}
|
||||||
|
|
||||||
public string GetHashedStringChangeAuth(string newPassword, PasswordHash passwordHash)
|
public string GetHashedStringChangeAuth(string newPassword, PasswordHash passwordHash)
|
||||||
{
|
{
|
||||||
passwordHash.HashBytes = Encoding.UTF8.GetBytes(newPassword);
|
passwordHash.HashBytes = Encoding.UTF8.GetBytes(newPassword);
|
||||||
|
|||||||
@@ -471,7 +471,7 @@ namespace Emby.Server.Implementations.Library
|
|||||||
if (password == null)
|
if (password == null)
|
||||||
{
|
{
|
||||||
// legacy
|
// legacy
|
||||||
success = string.Equals(_defaultAuthenticationProvider.GetPasswordHash(user), hashedPassword.Replace("-", string.Empty), StringComparison.OrdinalIgnoreCase);
|
success = string.Equals(GetAuthenticationProvider(user).GetPasswordHash(user), hashedPassword.Replace("-", string.Empty), StringComparison.OrdinalIgnoreCase);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -497,11 +497,11 @@ namespace Emby.Server.Implementations.Library
|
|||||||
if (password == null)
|
if (password == null)
|
||||||
{
|
{
|
||||||
// legacy
|
// legacy
|
||||||
success = string.Equals(GetLocalPasswordHash(user), hashedPassword.Replace("-", string.Empty), StringComparison.OrdinalIgnoreCase);
|
success = string.Equals(GetAuthenticationProvider(user).GetEasyPasswordHash(user), hashedPassword.Replace("-", string.Empty), StringComparison.OrdinalIgnoreCase);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
success = string.Equals(GetLocalPasswordHash(user), _defaultAuthenticationProvider.GetHashedString(user, password), StringComparison.OrdinalIgnoreCase);
|
success = string.Equals(GetAuthenticationProvider(user).GetEasyPasswordHash(user), _defaultAuthenticationProvider.GetHashedString(user, password), StringComparison.OrdinalIgnoreCase);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -546,13 +546,6 @@ namespace Emby.Server.Implementations.Library
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private string GetLocalPasswordHash(User user)
|
|
||||||
{
|
|
||||||
return string.IsNullOrEmpty(user.EasyPassword)
|
|
||||||
? null
|
|
||||||
: (new PasswordHash(user.EasyPassword)).Hash;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Loads the users from the repository
|
/// Loads the users from the repository
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -596,7 +589,7 @@ namespace Emby.Server.Implementations.Library
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool hasConfiguredPassword = GetAuthenticationProvider(user).HasPassword(user).Result;
|
bool hasConfiguredPassword = GetAuthenticationProvider(user).HasPassword(user).Result;
|
||||||
bool hasConfiguredEasyPassword = !string.IsNullOrEmpty(GetLocalPasswordHash(user));
|
bool hasConfiguredEasyPassword = !string.IsNullOrEmpty(GetAuthenticationProvider(user).GetEasyPasswordHash(user));
|
||||||
|
|
||||||
bool hasPassword = user.Configuration.EnableLocalPassword && !string.IsNullOrEmpty(remoteEndPoint) && _networkManager.IsInLocalNetwork(remoteEndPoint) ?
|
bool hasPassword = user.Configuration.EnableLocalPassword && !string.IsNullOrEmpty(remoteEndPoint) && _networkManager.IsInLocalNetwork(remoteEndPoint) ?
|
||||||
hasConfiguredEasyPassword :
|
hasConfiguredEasyPassword :
|
||||||
@@ -884,17 +877,7 @@ namespace Emby.Server.Implementations.Library
|
|||||||
throw new ArgumentNullException(nameof(user));
|
throw new ArgumentNullException(nameof(user));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newPassword != null)
|
GetAuthenticationProvider(user).ChangeEasyPassword(user, newPassword, newPasswordHash);
|
||||||
{
|
|
||||||
newPasswordHash = _defaultAuthenticationProvider.GetHashedString(user, newPassword);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (string.IsNullOrWhiteSpace(newPasswordHash))
|
|
||||||
{
|
|
||||||
throw new ArgumentNullException(nameof(newPasswordHash));
|
|
||||||
}
|
|
||||||
|
|
||||||
user.EasyPassword = newPasswordHash;
|
|
||||||
|
|
||||||
UpdateUser(user);
|
UpdateUser(user);
|
||||||
|
|
||||||
|
|||||||
@@ -224,7 +224,7 @@ namespace MediaBrowser.Api.UserLibrary
|
|||||||
request.IncludeItemTypes = "Playlist";
|
request.IncludeItemTypes = "Playlist";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!user.Policy.EnableAllFolders && !user.Policy.EnabledFolders.Any(i => new Guid(i) == item.Id))
|
if (!(item is UserRootFolder) && !user.Policy.EnableAllFolders && !user.Policy.EnabledFolders.Any(i => new Guid(i) == item.Id))
|
||||||
{
|
{
|
||||||
Logger.LogWarning("{UserName} is not permitted to access Library {ItemName}.", user.Name, item.Name);
|
Logger.LogWarning("{UserName} is not permitted to access Library {ItemName}.", user.Name, item.Name);
|
||||||
return new QueryResult<BaseItem>
|
return new QueryResult<BaseItem>
|
||||||
|
|||||||
@@ -11,6 +11,9 @@ namespace MediaBrowser.Controller.Authentication
|
|||||||
Task<ProviderAuthenticationResult> Authenticate(string username, string password);
|
Task<ProviderAuthenticationResult> Authenticate(string username, string password);
|
||||||
Task<bool> HasPassword(User user);
|
Task<bool> HasPassword(User user);
|
||||||
Task ChangePassword(User user, string newPassword);
|
Task ChangePassword(User user, string newPassword);
|
||||||
|
void ChangeEasyPassword(User user, string newPassword, string newPasswordHash);
|
||||||
|
string GetPasswordHash(User user);
|
||||||
|
string GetEasyPasswordHash(User user);
|
||||||
}
|
}
|
||||||
|
|
||||||
public interface IRequiresResolvedUser
|
public interface IRequiresResolvedUser
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ namespace MediaBrowser.Providers.TV.TheTVDB
|
|||||||
get
|
get
|
||||||
{
|
{
|
||||||
// Refresh if necessary
|
// Refresh if necessary
|
||||||
if (_tokenCreatedAt > DateTime.Now.Subtract(TimeSpan.FromHours(20)))
|
if (_tokenCreatedAt < DateTime.Now.Subtract(TimeSpan.FromHours(20)))
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|||||||
Submodule MediaBrowser.WebDashboard/jellyfin-web updated: b0f7a9b67c...37636dae5c
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
[assembly: AssemblyVersion("10.3.3")]
|
[assembly: AssemblyVersion("10.3.4")]
|
||||||
[assembly: AssemblyFileVersion("10.3.3")]
|
[assembly: AssemblyFileVersion("10.3.4")]
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
# We just wrap `build` so this is really it
|
# We just wrap `build` so this is really it
|
||||||
name: "jellyfin"
|
name: "jellyfin"
|
||||||
version: "10.3.3"
|
version: "10.3.4"
|
||||||
packages:
|
packages:
|
||||||
- debian-package-x64
|
- debian-package-x64
|
||||||
- debian-package-armhf
|
- debian-package-armhf
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
jellyfin (10.3.4-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* New upstream version 10.3.4; release changelog at https://github.com/jellyfin/jellyfin/releases/tag/v10.3.4
|
||||||
|
|
||||||
|
-- Jellyfin Packaging Team <packaging@jellyfin.org> Thu, 06 Jun 2019 22:45:31 -0400
|
||||||
|
|
||||||
jellyfin (10.3.3-1) unstable; urgency=medium
|
jellyfin (10.3.3-1) unstable; urgency=medium
|
||||||
|
|
||||||
* New upstream version 10.3.3; release changelog at https://github.com/jellyfin/jellyfin/releases/tag/v10.3.3
|
* New upstream version 10.3.3; release changelog at https://github.com/jellyfin/jellyfin/releases/tag/v10.3.3
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: jellyfin
|
Name: jellyfin
|
||||||
Version: 10.3.3
|
Version: 10.3.4
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: The Free Software Media Browser
|
Summary: The Free Software Media Browser
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
@@ -140,6 +140,8 @@ fi
|
|||||||
%systemd_postun_with_restart jellyfin.service
|
%systemd_postun_with_restart jellyfin.service
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jun 06 2019 Jellyfin Packaging Team <packaging@jellyfin.org>
|
||||||
|
- New upstream version 10.3.4; release changelog at https://github.com/jellyfin/jellyfin/releases/tag/v10.3.4
|
||||||
* Fri May 17 2019 Jellyfin Packaging Team <packaging@jellyfin.org>
|
* Fri May 17 2019 Jellyfin Packaging Team <packaging@jellyfin.org>
|
||||||
- New upstream version 10.3.3; release changelog at https://github.com/jellyfin/jellyfin/releases/tag/v10.3.3
|
- New upstream version 10.3.3; release changelog at https://github.com/jellyfin/jellyfin/releases/tag/v10.3.3
|
||||||
* Tue Apr 30 2019 Jellyfin Packaging Team <packaging@jellyfin.org>
|
* Tue Apr 30 2019 Jellyfin Packaging Team <packaging@jellyfin.org>
|
||||||
|
|||||||
Reference in New Issue
Block a user