Reduce log spam on failed logins

Failed logins already get logged higher up the call chain
This commit is contained in:
Bond_009
2023-08-21 19:09:32 +02:00
parent 388420faa2
commit a963bce9be
3 changed files with 16 additions and 15 deletions

View File

@@ -1,5 +1,3 @@
#nullable disable
#pragma warning disable CS1591
using System.Threading.Tasks;
@@ -23,7 +21,7 @@ namespace MediaBrowser.Controller.Authentication
public interface IRequiresResolvedUser
{
Task<ProviderAuthenticationResult> Authenticate(string username, string password, User resolvedUser);
Task<ProviderAuthenticationResult> Authenticate(string username, string password, User? resolvedUser);
}
public interface IHasNewUserPolicy
@@ -33,8 +31,8 @@ namespace MediaBrowser.Controller.Authentication
public class ProviderAuthenticationResult
{
public string Username { get; set; }
public required string Username { get; set; }
public string DisplayName { get; set; }
public string? DisplayName { get; set; }
}
}