IPasswordResetProvider.cs 687 B

12345678910111213141516171819202122232425262728
  1. #pragma warning disable CS1591
  2. using System;
  3. using System.Threading.Tasks;
  4. using Jellyfin.Database.Implementations.Entities;
  5. using MediaBrowser.Model.Users;
  6. namespace MediaBrowser.Controller.Authentication
  7. {
  8. public interface IPasswordResetProvider
  9. {
  10. string Name { get; }
  11. bool IsEnabled { get; }
  12. Task<ForgotPasswordResult> StartForgotPasswordProcess(User? user, string enteredUsername, bool isInNetwork);
  13. Task<PinRedeemResult> RedeemPasswordResetPin(string pin);
  14. }
  15. #nullable disable
  16. public class PasswordPinCreationResult
  17. {
  18. public string PinFile { get; set; }
  19. public DateTime ExpirationDate { get; set; }
  20. }
  21. }