mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-22 10:04:44 +01:00
fixes #1074
This commit is contained in:
@@ -58,10 +58,7 @@ namespace MediaBrowser.Controller.Connect
|
||||
/// <summary>
|
||||
/// Authenticates the specified username.
|
||||
/// </summary>
|
||||
/// <param name="username">The username.</param>
|
||||
/// <param name="passwordMd5">The password MD5.</param>
|
||||
/// <returns>Task.</returns>
|
||||
Task<ConnectAuthenticationResult> Authenticate(string username, string passwordMd5);
|
||||
Task<ConnectAuthenticationResult> Authenticate(string username, string password, string passwordMd5);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the local user.
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace MediaBrowser.Controller.Entities
|
||||
/// <value>The password.</value>
|
||||
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; }
|
||||
|
||||
@@ -58,16 +58,6 @@ namespace MediaBrowser.Controller.Library
|
||||
/// <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>
|
||||
/// <param name="passwordSha1">The password sha1.</param>
|
||||
/// <param name="remoteEndPoint">The remote end point.</param>
|
||||
/// <returns>Task{System.Boolean}.</returns>
|
||||
/// <exception cref="System.ArgumentNullException">user</exception>
|
||||
Task<User> AuthenticateUser(string username, string passwordSha1, string remoteEndPoint);
|
||||
|
||||
/// <summary>
|
||||
/// Refreshes metadata for each user
|
||||
/// </summary>
|
||||
@@ -135,18 +125,12 @@ namespace MediaBrowser.Controller.Library
|
||||
/// <summary>
|
||||
/// Changes the password.
|
||||
/// </summary>
|
||||
/// <param name="user">The user.</param>
|
||||
/// <param name="newPasswordSha1">The new password sha1.</param>
|
||||
/// <returns>Task.</returns>
|
||||
void ChangePassword(User user, string newPasswordSha1);
|
||||
void ChangePassword(User user, string newPassword, string newPasswordSha1);
|
||||
|
||||
/// <summary>
|
||||
/// Changes the easy password.
|
||||
/// </summary>
|
||||
/// <param name="user">The user.</param>
|
||||
/// <param name="newPasswordSha1">The new password sha1.</param>
|
||||
/// <returns>Task.</returns>
|
||||
void ChangeEasyPassword(User user, string newPasswordSha1);
|
||||
void ChangeEasyPassword(User user, string newPassword, string newPasswordSha1);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the user dto.
|
||||
@@ -159,12 +143,7 @@ namespace MediaBrowser.Controller.Library
|
||||
/// <summary>
|
||||
/// Authenticates the user.
|
||||
/// </summary>
|
||||
/// <param name="username">The username.</param>
|
||||
/// <param name="passwordSha1">The password sha1.</param>
|
||||
/// <param name="passwordMd5">The password MD5.</param>
|
||||
/// <param name="remoteEndPoint">The remote end point.</param>
|
||||
/// <returns>Task<System.Boolean>.</returns>
|
||||
Task<User> AuthenticateUser(string username, string passwordSha1, string passwordMd5, string remoteEndPoint);
|
||||
Task<User> AuthenticateUser(string username, string password, string passwordSha1, string passwordMd5, string remoteEndPoint);
|
||||
|
||||
/// <summary>
|
||||
/// Starts the forgot password process.
|
||||
|
||||
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user