TLoginOptions Class
Manages login options for user authentication. This class includes settings to control how users can log in, including requirements for email and phone number confirmation, the uniqueness of emails, and the methods by which users can identify themselves.
Syntax
Unit: Sphinx.Options
TLoginOptions = class(TPersistent);
Properties
| Name | Description |
|---|---|
| AllowPasswordLogin | Allows users to log in with a local username/password on the login page. |
| CheckRequiredProfileOnLogin | Requires a user to have all the identifier fields the application mandates (see TUserOptions.RequireEmail, TUserOptions.RequireUserName and TUserOptions.RequirePhoneNumber) before a login can complete. |
| ForbidSelfRegistration | Determines whether users are allowed to register themselves. |
| RequireConfirmedEmail | Requires users to have confirmed their email to log in. |
| RequireConfirmedPhoneNumber | Requires users to have confirmed their phone number to log in. |
| RequireTwoFactor | Require users to login using two factor authentication. |
| RequireUniqueEmail | Requires each user to have a unique email address. |
| UseEmail | Allows users to log in using their email address. |
| UsePhoneNumber | Allows users to log in using their phone number. |
| UseUserName | Allows users to log in using their username. |