IPasswordResetProvider.cs 624 B

123456789101112131415161718192021222324252627
  1. #pragma warning disable CS1591
  2. using System;
  3. using System.Threading.Tasks;
  4. using Jellyfin.Data.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, bool isInNetwork);
  13. Task<PinRedeemResult> RedeemPasswordResetPin(string pin);
  14. }
  15. public class PasswordPinCreationResult
  16. {
  17. public string PinFile { get; set; }
  18. public DateTime ExpirationDate { get; set; }
  19. }
  20. }