jellyfin/MediaBrowser.Controller/Authentication/IPasswordResetProvider.cs

28 lines
624 B
C#
Raw Normal View History

#pragma warning disable CS1591
using System;
using System.Threading.Tasks;
2020-05-12 19:10:35 -07:00
using Jellyfin.Data.Entities;
using MediaBrowser.Model.Users;
namespace MediaBrowser.Controller.Authentication
{
public interface IPasswordResetProvider
{
string Name { get; }
2020-06-15 14:43:52 -07:00
bool IsEnabled { get; }
2020-06-15 14:43:52 -07:00
Task<ForgotPasswordResult> StartForgotPasswordProcess(User user, bool isInNetwork);
Task<PinRedeemResult> RedeemPasswordResetPin(string pin);
}
2019-05-21 10:28:34 -07:00
public class PasswordPinCreationResult
{
public string PinFile { get; set; }
2020-06-15 14:43:52 -07:00
public DateTime ExpirationDate { get; set; }
}
}