Migrated member related partial views along with necessary methods from MembershipHelper into IUmbracoWebsiteSecurity.

This commit is contained in:
Andy Butland
2020-11-24 11:33:46 +01:00
parent ebe643e30b
commit b331d683ec
13 changed files with 381 additions and 120 deletions

View 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; }
}
}