Difference between revisions of "THTTPLogin"
From Ultibo.org
								
												
				 (Created page with "Return to Unit HTTP   __TOC__  === Description === ----  ''To be documented''  === Class definitions === ----   <div class="toccolours mw-collapsible mw-collapse...")  | 
			
(No difference) 
 | 
Revision as of 01:54, 24 October 2025
Return to Unit HTTP
Description
To be documented
Class definitions
THTTPLogin = class(THTTPDocument)
public 
 | |
 constructor Create;
 | 
|
private 
 | |
 FTitle:String;
 | 
The page title shown in the browser (Default: 'Login') | 
 FFormName:String;
 | 
The name to use for the form in HTML content (Default: 'loginForm') | 
 FUsernameName:String;
 | 
The parameter name to use for the username in form parameters (Default: 'username') | 
 FPasswordName:String;
 | 
The parameter name to use for the password in form parameters (Default: 'password') | 
 FReturnURLName:String;
 | 
The parameter name to use for the return URL in request URLs (Default: 'returnurl') | 
 function GetTitle:String;
 | 
|
 procedure SetTitle(const ATitle:String);
 | 
|
 function GetFormName:String;
 | 
|
 procedure SetFormName(const AName:String);
 | 
|
 function GetUsernameName:String;
 | 
|
 procedure SetUsernameName(const AName:String);
 | 
|
 function GetPasswordName:String;
 | 
|
 procedure SetPasswordName(const AName:String);
 | 
|
 function GetReturnURLName:String;
 | 
|
 procedure SetReturnURLName(const AName:String);
 | 
|
protected 
 | |
 function FindUserAuthenticator(AHost:THTTPHost; ARequest:THTTPServerRequest):TAuthenticator;
 | 
|
 function FindSessionAuthenticator(AHost:THTTPHost; ARequest:THTTPServerRequest):TAuthenticator;
 | 
|
 function DoGet(AHost:THTTPHost; ARequest:THTTPServerRequest; AResponse:THTTPServerResponse):Boolean; override;
 | 
|
 function DoPost(AHost:THTTPHost; ARequest:THTTPServerRequest; AResponse:THTTPServerResponse):Boolean; override;
 | 
|
 function AddHeader(AHost:THTTPHost; ARequest:THTTPServerRequest; AResponse:THTTPServerResponse):Boolean; virtual;
 | 
|
 function AddForm(AHost:THTTPHost; ARequest:THTTPServerRequest; AResponse:THTTPServerResponse):Boolean; virtual;
 | 
|
 function AddScript(AHost:THTTPHost; ARequest:THTTPServerRequest; AResponse:THTTPServerResponse):Boolean; virtual;
 | 
|
 function AddFooter(AHost:THTTPHost; ARequest:THTTPServerRequest; AResponse:THTTPServerResponse):Boolean; virtual;
 | 
|
public 
 | |
 property Title:String read GetTitle write SetTitle;
 | 
|
 property FormName:String read GetFormName write SetFormName;
 | 
|
 property UsernameName:String read GetUsernameName write SetUsernameName;
 | 
|
 property PasswordName:String read GetPasswordName write SetPasswordName;
 | 
|
 property ReturnURLName:String read GetReturnURLName write SetReturnURLName;
 | 
|
Function declarations
constructor THTTPLogin.Create;
Description: To be documented
| Note | None documented | 
|---|
Return to Unit Reference