diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2020-08-22 23:50:43 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-22 23:50:43 -0400 |
| commit | 3a99a4770c86d6815267857558968ef5c1fa73f4 (patch) | |
| tree | 33bf04f0792982f0300d0f972185b0bfff310e15 /MediaBrowser.Controller/Authentication | |
| parent | e88b7b8d0e08694a4cc939b8632cc077dc51c7ca (diff) | |
| parent | c4d8275fc1ad29823788043750e2f3f8e8b8244e (diff) | |
Merge pull request #3958 from Bond-009/warn26
Enable TreatWarningsAsErrors for MediaBrowser.Controller in Release
Diffstat (limited to 'MediaBrowser.Controller/Authentication')
| -rw-r--r-- | MediaBrowser.Controller/Authentication/IAuthenticationProvider.cs | 4 | ||||
| -rw-r--r-- | MediaBrowser.Controller/Authentication/IPasswordResetProvider.cs | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Authentication/IAuthenticationProvider.cs b/MediaBrowser.Controller/Authentication/IAuthenticationProvider.cs index 15c902777..ecdffa2eb 100644 --- a/MediaBrowser.Controller/Authentication/IAuthenticationProvider.cs +++ b/MediaBrowser.Controller/Authentication/IAuthenticationProvider.cs @@ -1,3 +1,5 @@ +#pragma warning disable CS1591 + using System.Threading.Tasks; using Jellyfin.Data.Entities; using MediaBrowser.Model.Users; @@ -11,7 +13,9 @@ namespace MediaBrowser.Controller.Authentication bool IsEnabled { get; } Task<ProviderAuthenticationResult> Authenticate(string username, string password); + bool HasPassword(User user); + Task ChangePassword(User user, string newPassword); } diff --git a/MediaBrowser.Controller/Authentication/IPasswordResetProvider.cs b/MediaBrowser.Controller/Authentication/IPasswordResetProvider.cs index 693df80ac..6729b9115 100644 --- a/MediaBrowser.Controller/Authentication/IPasswordResetProvider.cs +++ b/MediaBrowser.Controller/Authentication/IPasswordResetProvider.cs @@ -1,3 +1,5 @@ +#pragma warning disable CS1591 + using System; using System.Threading.Tasks; using Jellyfin.Data.Entities; @@ -12,6 +14,7 @@ namespace MediaBrowser.Controller.Authentication bool IsEnabled { get; } Task<ForgotPasswordResult> StartForgotPasswordProcess(User user, bool isInNetwork); + Task<PinRedeemResult> RedeemPasswordResetPin(string pin); } |
