From bca1d65bdc026578e270b19b6129b79faeb53969 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 17 Sep 2017 12:45:23 -0400 Subject: fixes #1074 --- MediaBrowser.Controller/Connect/IConnectManager.cs | 5 +--- MediaBrowser.Controller/Entities/User.cs | 1 + MediaBrowser.Controller/Library/IUserManager.cs | 27 +++------------------- .../Session/AuthenticationRequest.cs | 1 + 4 files changed, 6 insertions(+), 28 deletions(-) (limited to 'MediaBrowser.Controller') diff --git a/MediaBrowser.Controller/Connect/IConnectManager.cs b/MediaBrowser.Controller/Connect/IConnectManager.cs index f899c72623..70bdc52e63 100644 --- a/MediaBrowser.Controller/Connect/IConnectManager.cs +++ b/MediaBrowser.Controller/Connect/IConnectManager.cs @@ -58,10 +58,7 @@ namespace MediaBrowser.Controller.Connect /// /// Authenticates the specified username. /// - /// The username. - /// The password MD5. - /// Task. - Task Authenticate(string username, string passwordMd5); + Task Authenticate(string username, string password, string passwordMd5); /// /// Gets the local user. diff --git a/MediaBrowser.Controller/Entities/User.cs b/MediaBrowser.Controller/Entities/User.cs index 3c89037cca..cca3091c15 100644 --- a/MediaBrowser.Controller/Entities/User.cs +++ b/MediaBrowser.Controller/Entities/User.cs @@ -30,6 +30,7 @@ namespace MediaBrowser.Controller.Entities /// The password. public string Password { get; set; } public string EasyPassword { get; set; } + public string Salt { get; set; } public string ConnectUserName { get; set; } public string ConnectUserId { get; set; } diff --git a/MediaBrowser.Controller/Library/IUserManager.cs b/MediaBrowser.Controller/Library/IUserManager.cs index 6da3e53aab..d4232c77e0 100644 --- a/MediaBrowser.Controller/Library/IUserManager.cs +++ b/MediaBrowser.Controller/Library/IUserManager.cs @@ -58,16 +58,6 @@ namespace MediaBrowser.Controller.Library /// User. User GetUserByName(string name); - /// - /// Authenticates a User and returns a result indicating whether or not it succeeded - /// - /// The username. - /// The password sha1. - /// The remote end point. - /// Task{System.Boolean}. - /// user - Task AuthenticateUser(string username, string passwordSha1, string remoteEndPoint); - /// /// Refreshes metadata for each user /// @@ -135,18 +125,12 @@ namespace MediaBrowser.Controller.Library /// /// Changes the password. /// - /// The user. - /// The new password sha1. - /// Task. - void ChangePassword(User user, string newPasswordSha1); + void ChangePassword(User user, string newPassword, string newPasswordSha1); /// /// Changes the easy password. /// - /// The user. - /// The new password sha1. - /// Task. - void ChangeEasyPassword(User user, string newPasswordSha1); + void ChangeEasyPassword(User user, string newPassword, string newPasswordSha1); /// /// Gets the user dto. @@ -159,12 +143,7 @@ namespace MediaBrowser.Controller.Library /// /// Authenticates the user. /// - /// The username. - /// The password sha1. - /// The password MD5. - /// The remote end point. - /// Task<System.Boolean>. - Task AuthenticateUser(string username, string passwordSha1, string passwordMd5, string remoteEndPoint); + Task AuthenticateUser(string username, string password, string passwordSha1, string passwordMd5, string remoteEndPoint); /// /// Starts the forgot password process. diff --git a/MediaBrowser.Controller/Session/AuthenticationRequest.cs b/MediaBrowser.Controller/Session/AuthenticationRequest.cs index 362f5b2b95..1b684fa8f2 100644 --- a/MediaBrowser.Controller/Session/AuthenticationRequest.cs +++ b/MediaBrowser.Controller/Session/AuthenticationRequest.cs @@ -5,6 +5,7 @@ namespace MediaBrowser.Controller.Session { public string Username { get; set; } public string UserId { get; set; } + public string Password { get; set; } public string PasswordSha1 { get; set; } public string PasswordMd5 { get; set; } public string App { get; set; } -- cgit v1.2.3