aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Library/IUserManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Controller/Library/IUserManager.cs')
-rw-r--r--MediaBrowser.Controller/Library/IUserManager.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Library/IUserManager.cs b/MediaBrowser.Controller/Library/IUserManager.cs
index 6e084e9d8..bd44f786f 100644
--- a/MediaBrowser.Controller/Library/IUserManager.cs
+++ b/MediaBrowser.Controller/Library/IUserManager.cs
@@ -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
{
@@ -57,6 +58,13 @@ namespace MediaBrowser.Controller.Library
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>
/// <param name="username">The username.</param>
@@ -141,5 +149,20 @@ namespace MediaBrowser.Controller.Library
/// <param name="remoteEndPoint">The remote end point.</param>
/// <returns>Task&lt;System.Boolean&gt;.</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);
}
}