TUser
A user of an web application
Inheritance
Level | Ancestor | Description |
---|---|---|
1 | TObject | Ultimate ancestor in a class hierarchy |
2 | TUser |
Source
UserManagement.User.pas (37)
Description
Users should activate their account by properly executing the instructions in an activation e-mail that provides the activation code.
As long the user has not activated his account ActivatedInstant
will be nil
, otherwise it will contain the time
of activation. A user's e-mail address should be unique among all registered users.
Fields
Scope | Visibility | Type | Name | Description |
---|---|---|---|---|
Instance | private | TUserIdentifier | FId | |
Instance | private | TText | FName | |
Instance | private | TText | FEmail | |
Instance | private | TBoolean | FExposeEmail | |
Instance | private | TText | FEncryptedPassword | |
Instance | private | TBoolean | FInformed | |
Instance | private | TBoolean | FConditionsAccepted | |
Instance | private | TText | FPasswordSalt | |
Instance | private | TText | FComments | |
Instance | private | TUuid | FActivationCode | |
Instance | private | TGregorianInstant | FActivatedInstant | |
Instance | private | TUuidGeneratorVersion4 | UuidGenerator | |
Type | public | TRandomText | PasswordGenerator | |
Type | public | TRandomText | PasswordSaltGenerator |
Methods
Scope | Visibility | Result | Name | Description |
---|---|---|---|---|
Instance | private | SetActivatedInstant(Value: TGregorianInstant) | ||
Instance | private | TText | EncryptPassword(Password: TText) | |
Type | protected | TUser | LoadFromDatabase(Database: TSqlDatabase; Restrictions: array of TSqlExpressionBuilder) | |
Instance | public | Create() | ||
Instance | public | Destroy() | ||
Instance | public | TUser | Copy() | |
Instance | public | SetPassword(Password: TText) | ||
Instance | public | TBoolean | CheckPassword(Password: TText) | |
Instance | public | TBoolean | CheckEMailActivated(Password: TText) | |
Instance | public | TUserIdentifier | Deprecated_GetIdentifier() | |
Instance | public | TMailAddress | CreateMailAddress() | |
Instance | public | GenerateActivationCode() | ||
Instance | public | CreateNewInDatabase(Database: TSqlDatabase) | ||
Type | public | TUser | LoadWithIdentifier(Database: TSqlDatabase; Identifier: TUserIdentifier) | |
Type | public | TUser | LoadWithEMail(Database: TSqlDatabase; EMail: TText) | |
Type | public | TUser | LoadWithBearer(Database: TSqlDatabase; Bearer: TUuid) | |
Global | public | Create() | ||
Global | public | Destroy() |