Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Account

Michał B edited this page Aug 23, 2018 · 3 revisions

About

This class is a base class for: User.

Properties

Type Name Description
int Id This is an id for given entity/object. Id is unique.
string Nick This is a nick that every user has. Nick is intended for display to other users. Nick is unique.
UInt64/ulong Login This is hashcode of the login provided during registration. Login is used to distinguish accounts. Login is unique, but can be changed.
byte[] Salt This is salt used for password validation. It is unique for every user and generated by special method.
byte[] PasswordHash This is password hash used for account authorization. It is unique for every user and generated by special method. Can be changed by user during password update.
string Role This is account role in the application. Role is set by the system during registration.
string RestoreKey This is account key for access recovery. This is only way to regain access to the account if user has forgotten the password.
DateTime CreatedAt This is the date and time when the account was created. It is set during registration.
DateTime UpdatedAt This is the date and time when the account was updated. It is set during registration for the first time. Each account update operation refreshes this property.
Clone this wiki locally