mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
Apply minor suggestions from code review
Co-Authored-By: LogicalPhallacy <44458166+LogicalPhallacy@users.noreply.github.com>
This commit is contained in:
parent
86772bd7bd
commit
740c95d557
2 changed files with 113 additions and 112 deletions
|
@ -70,6 +70,7 @@ namespace Emby.Server.Implementations.Library
|
||||||
UsersReset = usersreset.ToArray()
|
UsersReset = usersreset.ToArray()
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new System.NotImplementedException();
|
throw new System.NotImplementedException();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -92,7 +93,7 @@ namespace Emby.Server.Implementations.Library
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
throw new Exception($"Error serializing or writing password reset for {user.Name} to location:{filePath}", e);
|
throw new Exception($"Error serializing or writing password reset for {user.Name} to location: {filePath}", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
return new ForgotPasswordResult
|
return new ForgotPasswordResult
|
||||||
|
|
|
@ -373,7 +373,7 @@ namespace Emby.Server.Implementations.Library
|
||||||
|
|
||||||
private IPasswordResetProvider GetPasswordResetProvider(User user)
|
private IPasswordResetProvider GetPasswordResetProvider(User user)
|
||||||
{
|
{
|
||||||
return GetPasswordResetProviders(user).First();
|
return GetPasswordResetProviders(user)[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
private IAuthenticationProvider[] GetAuthenticationProviders(User user)
|
private IAuthenticationProvider[] GetAuthenticationProviders(User user)
|
||||||
|
|
Loading…
Reference in a new issue