mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-28 02:21:00 +01:00
fixes #941 - Rework password recovery and remove IsLocal checks
This commit is contained in:
@@ -6,6 +6,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using MediaBrowser.Model.Users;
|
||||
|
||||
namespace MediaBrowser.Controller.Library
|
||||
{
|
||||
@@ -56,6 +57,13 @@ namespace MediaBrowser.Controller.Library
|
||||
/// <returns>User.</returns>
|
||||
User GetUserById(string id);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name of the user by.
|
||||
/// </summary>
|
||||
/// <param name="name">The name.</param>
|
||||
/// <returns>User.</returns>
|
||||
User GetUserByName(string name);
|
||||
|
||||
/// <summary>
|
||||
/// Authenticates a User and returns a result indicating whether or not it succeeded
|
||||
/// </summary>
|
||||
@@ -141,5 +149,20 @@ namespace MediaBrowser.Controller.Library
|
||||
/// <param name="remoteEndPoint">The remote end point.</param>
|
||||
/// <returns>Task<System.Boolean>.</returns>
|
||||
Task<bool> AuthenticateUser(string username, string passwordSha1, string passwordMd5, string remoteEndPoint);
|
||||
|
||||
/// <summary>
|
||||
/// Starts the forgot password process.
|
||||
/// </summary>
|
||||
/// <param name="enteredUsername">The entered username.</param>
|
||||
/// <param name="isInNetwork">if set to <c>true</c> [is in network].</param>
|
||||
/// <returns>ForgotPasswordResult.</returns>
|
||||
ForgotPasswordResult StartForgotPasswordProcess(string enteredUsername, bool isInNetwork);
|
||||
|
||||
/// <summary>
|
||||
/// Redeems the password reset pin.
|
||||
/// </summary>
|
||||
/// <param name="pin">The pin.</param>
|
||||
/// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>
|
||||
Task<PinRedeemResult> RedeemPasswordResetPin(string pin);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user