IPasswordResetProvider.cs 591 B

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