jellyfin/MediaBrowser.Controller/Authentication/IPasswordResetProvider.cs

22 lines
588 B
C#
Raw Normal View History

using System;
using System.Threading.Tasks;
2020-05-12 22:10:35 -04:00
using Jellyfin.Data.Entities;
using MediaBrowser.Model.Users;
namespace MediaBrowser.Controller.Authentication
{
public interface IPasswordResetProvider
{
string Name { get; }
bool IsEnabled { get; }
Task<ForgotPasswordResult> StartForgotPasswordProcess(User user, bool isInNetwork);
Task<PinRedeemResult> RedeemPasswordResetPin(string pin);
}
2019-05-21 13:28:34 -04:00
public class PasswordPinCreationResult
{
public string PinFile { get; set; }
public DateTime ExpirationDate { get; set; }
}
}