From 40897bac1494791e1ec6abcfe85cda27d4664a32 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 8 Nov 2014 22:18:14 -0500 Subject: fixes #941 - Rework password recovery and remove IsLocal checks --- MediaBrowser.Controller/Library/IUserManager.cs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'MediaBrowser.Controller/Library/IUserManager.cs') 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 { @@ -56,6 +57,13 @@ namespace MediaBrowser.Controller.Library /// User. User GetUserById(string id); + /// + /// Gets the name of the user by. + /// + /// The name. + /// User. + User GetUserByName(string name); + /// /// Authenticates a User and returns a result indicating whether or not it succeeded /// @@ -141,5 +149,20 @@ namespace MediaBrowser.Controller.Library /// The remote end point. /// Task<System.Boolean>. Task AuthenticateUser(string username, string passwordSha1, string passwordMd5, string remoteEndPoint); + + /// + /// Starts the forgot password process. + /// + /// The entered username. + /// if set to true [is in network]. + /// ForgotPasswordResult. + ForgotPasswordResult StartForgotPasswordProcess(string enteredUsername, bool isInNetwork); + + /// + /// Redeems the password reset pin. + /// + /// The pin. + /// true if XXXX, false otherwise. + Task RedeemPasswordResetPin(string pin); } } -- cgit v1.2.3