IPasswordResetProvider.cs 663 B

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