2020-08-22 21:56:24 +02:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
|
2019-03-22 00:01:23 -07:00
|
|
|
using System;
|
|
|
|
|
using System.Threading.Tasks;
|
2025-03-25 16:45:00 +01:00
|
|
|
using Jellyfin.Database.Implementations.Entities;
|
2019-03-22 00:01:23 -07:00
|
|
|
using MediaBrowser.Model.Users;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Authentication
|
|
|
|
|
{
|
|
|
|
|
public interface IPasswordResetProvider
|
|
|
|
|
{
|
|
|
|
|
string Name { get; }
|
2020-06-16 09:43:52 +12:00
|
|
|
|
2019-03-22 00:01:23 -07:00
|
|
|
bool IsEnabled { get; }
|
2020-06-16 09:43:52 +12:00
|
|
|
|
2025-11-02 21:58:42 -05:00
|
|
|
Task<ForgotPasswordResult> StartForgotPasswordProcess(User? user, string enteredUsername, bool isInNetwork);
|
2020-08-22 21:56:24 +02:00
|
|
|
|
2019-03-22 00:01:23 -07:00
|
|
|
Task<PinRedeemResult> RedeemPasswordResetPin(string pin);
|
|
|
|
|
}
|
2019-05-21 19:28:34 +02:00
|
|
|
|
2025-11-02 21:58:42 -05:00
|
|
|
#nullable disable
|
2019-03-22 00:01:23 -07:00
|
|
|
public class PasswordPinCreationResult
|
|
|
|
|
{
|
|
|
|
|
public string PinFile { get; set; }
|
2020-06-16 09:43:52 +12:00
|
|
|
|
2019-03-22 00:01:23 -07:00
|
|
|
public DateTime ExpirationDate { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|