Class User
Describes a User in Oqtane.
public class User : ModelBase, IAuditable, IDeletable
- Inheritance
-
User
- Implements
- Inherited Members
Properties
DeletedBy
User who deleted this object.
public string DeletedBy { get; set; }
Property Value
DeletedOn
Timestamp when it was deleted.
public DateTime? DeletedOn { get; set; }
Property Value
DisplayName
Name shown in menus / dialogs etc.
public string DisplayName { get; set; }
Property Value
User E-Mail address.
public string Email { get; set; }
Property Value
EmailConfirmed
Information if this user's email address is confirmed (set during user creation)
[NotMapped]
public bool EmailConfirmed { get; set; }
Property Value
FolderPath
The path name of the user's personal folder
[NotMapped]
public string FolderPath { get; }
Property Value
IsAuthenticated
Information if this user is authenticated. Anonymous users are not authenticated.
[NotMapped]
public bool IsAuthenticated { get; set; }
Property Value
IsDeleted
If something is deleted, this will be true.
public bool IsDeleted { get; set; }
Property Value
LastIPAddress
IP address when the user last logged in to this site.
public string LastIPAddress { get; set; }
Property Value
LastLoginOn
Timestamp of last login.
public DateTime? LastLoginOn { get; set; }
Property Value
Password
The users password. Note that this is not plaintext, so you can probably never really work with this.
[NotMapped]
public string Password { get; set; }
Property Value
PhotoFileId
Reference to a File containing the users photo.
public int? PhotoFileId { get; set; }
Property Value
- int?
Roles
Semi-colon delimited list of role names for the user
[NotMapped]
public string Roles { get; set; }
Property Value
SecurityStamp
A token indicating if a user's security properties have been modified
[NotMapped]
public string SecurityStamp { get; set; }
Property Value
Settings
Public User Settings
[NotMapped]
public Dictionary<string, string> Settings { get; set; }
Property Value
SiteId
Reference to the Site this user belongs to.
[NotMapped]
public int SiteId { get; set; }
Property Value
SuppressNotification
Indicates if new user should be notified by email (set during user creation)
[NotMapped]
public bool SuppressNotification { get; set; }
Property Value
TwoFactorCode
Stores the 2 factor verification code
public string TwoFactorCode { get; set; }
Property Value
TwoFactorExpiry
The expiry date/time for the 2 factor verification code
public DateTime? TwoFactorExpiry { get; set; }
Property Value
TwoFactorRequired
Indicates if the user requires 2 factor authentication to sign in
public bool TwoFactorRequired { get; set; }
Property Value
UserId
ID of this User.
public int UserId { get; set; }
Property Value
Username
Username used for login.
public string Username { get; set; }