aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Authentication
diff options
context:
space:
mode:
authorClaus Vium <cvium@users.noreply.github.com>2023-08-25 10:24:04 +0200
committerGitHub <noreply@github.com>2023-08-25 10:24:04 +0200
commitb48a7c0f856292f9cde683052540a256456ed262 (patch)
tree600cfb641c5a510c213fbd5d374fdaf676122b21 /MediaBrowser.Controller/Authentication
parentb40f5d0b7d9bb7359214431c1dcb2202902ef2ad (diff)
parenta963bce9beb16f0d66ec0cef8d92f0d4f6536730 (diff)
Merge pull request #10137 from Bond-009/logspam
Reduce log spam on failed logins
Diffstat (limited to 'MediaBrowser.Controller/Authentication')
-rw-r--r--MediaBrowser.Controller/Authentication/IAuthenticationProvider.cs8
1 files changed, 3 insertions, 5 deletions
diff --git a/MediaBrowser.Controller/Authentication/IAuthenticationProvider.cs b/MediaBrowser.Controller/Authentication/IAuthenticationProvider.cs
index a56d3c822..81b532fda 100644
--- a/MediaBrowser.Controller/Authentication/IAuthenticationProvider.cs
+++ b/MediaBrowser.Controller/Authentication/IAuthenticationProvider.cs
@@ -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; }
}
}