diff options
Diffstat (limited to 'MediaBrowser.Controller/Authentication/IPasswordResetProvider.cs')
| -rw-r--r-- | MediaBrowser.Controller/Authentication/IPasswordResetProvider.cs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Authentication/IPasswordResetProvider.cs b/MediaBrowser.Controller/Authentication/IPasswordResetProvider.cs new file mode 100644 index 000000000..8c9d1baf8 --- /dev/null +++ b/MediaBrowser.Controller/Authentication/IPasswordResetProvider.cs @@ -0,0 +1,29 @@ +#nullable disable + +#pragma warning disable CS1591 + +using System; +using System.Threading.Tasks; +using Jellyfin.Data.Entities; +using MediaBrowser.Model.Users; + +namespace MediaBrowser.Controller.Authentication +{ + public interface IPasswordResetProvider + { + string Name { get; } + + bool IsEnabled { get; } + + Task<ForgotPasswordResult> StartForgotPasswordProcess(User user, bool isInNetwork); + + Task<PinRedeemResult> RedeemPasswordResetPin(string pin); + } + + public class PasswordPinCreationResult + { + public string PinFile { get; set; } + + public DateTime ExpirationDate { get; set; } + } +} |
