Class IdentityUser<TKey, TLogin, TRole, TClaim>
Default IUser implementation
Inheritance
Namespace: Umbraco.Core.Models.Identity
Assembly: Umbraco.Core.dll
Syntax
public class IdentityUser<TKey, TLogin, TRole, TClaim> : IUser<TKey> where TLogin : IIdentityUserLogin where TRole : IdentityUserRole<string> where TClaim : IdentityUserClaim<TKey>
Type Parameters
Name | Description |
---|---|
TKey | |
TLogin | |
TRole | |
TClaim |
Remarks
This class normally exists inside of the EntityFramework library, not sure why MS chose to explicitly put it there but we don't want references to that so we will create our own here
Constructors
View SourceIdentityUser()
Initializes a new instance of the IdentityUser<TKey, TLogin, TRole, TClaim> class.
Declaration
public IdentityUser()
Properties
View SourceAccessFailedCount
Used to record failures for the purposes of lockout
Declaration
public virtual int AccessFailedCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Claims
Navigation property for user claims
Declaration
public virtual ICollection<TClaim> Claims { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ICollection<TClaim> |
Declaration
public virtual string Email { get; set; }
Property Value
Type | Description |
---|---|
System.String |
EmailConfirmed
True if the email is confirmed, default is false
Declaration
public virtual bool EmailConfirmed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Id
User ID (Primary Key)
Declaration
public virtual TKey Id { get; set; }
Property Value
Type | Description |
---|---|
TKey |
LastLoginDateUtc
Last login date
Declaration
public virtual DateTime? LastLoginDateUtc { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
LastPasswordChangeDateUtc
DateTime in UTC when the password was last changed.
Declaration
public virtual DateTime? LastPasswordChangeDateUtc { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
LockoutEnabled
Is lockout enabled for this user
Declaration
public virtual bool LockoutEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
LockoutEndDateUtc
DateTime in UTC when lockout ends, any time in the past is considered not locked out.
Declaration
public virtual DateTime? LockoutEndDateUtc { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
Logins
Navigation property for user logins
Declaration
public virtual ICollection<TLogin> Logins { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ICollection<TLogin> |
PasswordHash
The salted/hashed form of the user password
Declaration
public virtual string PasswordHash { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PhoneNumber
PhoneNumber for the user
Declaration
public virtual string PhoneNumber { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PhoneNumberConfirmed
True if the phone number is confirmed, default is false
Declaration
public virtual bool PhoneNumberConfirmed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Roles
Navigation property for user roles
Declaration
public virtual ICollection<TRole> Roles { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ICollection<TRole> |
SecurityStamp
A random value that should change whenever a users credentials have changed (password changed, login removed)
Declaration
public virtual string SecurityStamp { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TwoFactorEnabled
Is two factor enabled for the user
Declaration
public virtual bool TwoFactorEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
UserName
User name
Declaration
public virtual string UserName { get; set; }
Property Value
Type | Description |
---|---|
System.String |