Update Emby.Server.Implementations/Library/UserManager.cs

Co-Authored-By: LogicalPhallacy <44458166+LogicalPhallacy@users.noreply.github.com>
This commit is contained in:
Claus Vium 2019-03-24 11:41:03 -07:00 committed by GitHub
parent 26fe4040bf
commit 4e2841f0d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -398,7 +398,7 @@ namespace Emby.Server.Implementations.Library
private IPasswordResetProvider[] GetPasswordResetProviders(User user)
{
var passwordResetProviderId = user == null ? null : user.Policy.PasswordResetProviderId;
var passwordResetProviderId = user?.Policy.PasswordResetProviderId;
var providers = _passwordResetProviders.Where(i => i.IsEnabled).ToArray();