2021-05-06 18:39:20 -04:00
|
|
|
#nullable disable
|
|
|
|
|
2020-08-22 15:56:24 -04:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-03-22 03:01:23 -04:00
|
|
|
using System;
|
|
|
|
using System.Threading.Tasks;
|
2020-05-12 22:10:35 -04:00
|
|
|
using Jellyfin.Data.Entities;
|
2019-03-22 03:01:23 -04:00
|
|
|
using MediaBrowser.Model.Users;
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Authentication
|
|
|
|
{
|
|
|
|
public interface IPasswordResetProvider
|
|
|
|
{
|
|
|
|
string Name { get; }
|
2020-06-15 17:43:52 -04:00
|
|
|
|
2019-03-22 03:01:23 -04:00
|
|
|
bool IsEnabled { get; }
|
2020-06-15 17:43:52 -04:00
|
|
|
|
2019-03-22 03:01:23 -04:00
|
|
|
Task<ForgotPasswordResult> StartForgotPasswordProcess(User user, bool isInNetwork);
|
2020-08-22 15:56:24 -04:00
|
|
|
|
2019-03-22 03:01:23 -04:00
|
|
|
Task<PinRedeemResult> RedeemPasswordResetPin(string pin);
|
|
|
|
}
|
2019-05-21 13:28:34 -04:00
|
|
|
|
2019-03-22 03:01:23 -04:00
|
|
|
public class PasswordPinCreationResult
|
|
|
|
{
|
|
|
|
public string PinFile { get; set; }
|
2020-06-15 17:43:52 -04:00
|
|
|
|
2019-03-22 03:01:23 -04:00
|
|
|
public DateTime ExpirationDate { get; set; }
|
|
|
|
}
|
|
|
|
}
|