mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-09 06:35:11 -05:00
Update password reset to always return the same response structure Original-merge: 4ad31418753840ca76c52fc2aa56fa1a4235ca87 Merged-by: crobibero <cody@robibe.ro> Backported-by: Joshua M. Boniface <joshua@boniface.me>
29 lines
687 B
C#
29 lines
687 B
C#
#pragma warning disable CS1591
|
|
|
|
using System;
|
|
using System.Threading.Tasks;
|
|
using Jellyfin.Database.Implementations.Entities;
|
|
using MediaBrowser.Model.Users;
|
|
|
|
namespace MediaBrowser.Controller.Authentication
|
|
{
|
|
public interface IPasswordResetProvider
|
|
{
|
|
string Name { get; }
|
|
|
|
bool IsEnabled { get; }
|
|
|
|
Task<ForgotPasswordResult> StartForgotPasswordProcess(User? user, string enteredUsername, bool isInNetwork);
|
|
|
|
Task<PinRedeemResult> RedeemPasswordResetPin(string pin);
|
|
}
|
|
|
|
#nullable disable
|
|
public class PasswordPinCreationResult
|
|
{
|
|
public string PinFile { get; set; }
|
|
|
|
public DateTime ExpirationDate { get; set; }
|
|
}
|
|
}
|