Migrated member related partial views along with necessary methods from MembershipHelper into IUmbracoWebsiteSecurity.
This commit is contained in:
41
src/Umbraco.Core/Models/Security/LoginStatusModel.cs
Normal file
41
src/Umbraco.Core/Models/Security/LoginStatusModel.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Umbraco.Core.Models.Security
|
||||
{
|
||||
/// <summary>
|
||||
/// The model representing the status of a logged in member.
|
||||
/// </summary>
|
||||
public class LoginStatusModel
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates a new empty LoginStatusModel.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static LoginStatusModel CreateModel()
|
||||
{
|
||||
return new LoginStatusModel();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The name of the member
|
||||
/// </summary>
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The username of the member
|
||||
/// </summary>
|
||||
public string Username { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The email of the member
|
||||
/// </summary>
|
||||
[Required]
|
||||
public string Email { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// True, if the member is currently logged in
|
||||
/// </summary>
|
||||
public bool IsLoggedIn { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user