fixes #941 - Rework password recovery and remove IsLocal checks
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
|
||||
namespace MediaBrowser.Model.Users
|
||||
{
|
||||
public enum ForgotPasswordAction
|
||||
{
|
||||
ContactAdmin = 0,
|
||||
PinCode = 1,
|
||||
InNetworkRequired = 2
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Model.Users
|
||||
{
|
||||
public class ForgotPasswordResult
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the action.
|
||||
/// </summary>
|
||||
/// <value>The action.</value>
|
||||
public ForgotPasswordAction Action { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the pin file.
|
||||
/// </summary>
|
||||
/// <value>The pin file.</value>
|
||||
public string PinFile { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the pin expiration date.
|
||||
/// </summary>
|
||||
/// <value>The pin expiration date.</value>
|
||||
public DateTime? PinExpirationDate { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
|
||||
namespace MediaBrowser.Model.Users
|
||||
{
|
||||
public class PinRedeemResult
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether this <see cref="PinRedeemResult"/> is success.
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if success; otherwise, <c>false</c>.</value>
|
||||
public bool Success { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the users reset.
|
||||
/// </summary>
|
||||
/// <value>The users reset.</value>
|
||||
public string[] UsersReset { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user