Indy 9
|
TOnUserLoginEvent = procedure (ASender: TIdFTPServerThread; const AUsername, APassword: string; var AAuthenticated: Boolean) of object;
TOnUserLoginEvent is the event type signalled to the TIdFTPServer.OnUserLogin event handler, and allows the FTP server to perform authetication for a user account after receiving the FTP USER and PASS command verbs.
TOnUserLoginEvent is used in the FTP PASS command event handler when the server implementation does not use TIdUserAccounts for account authorization. The event handler can access resources external to the server to perform account authentication, and must set the value in AAuthenticated to indicate that the client has access to the FTP server.
The server implementation must assign a procedure to the event handler to allow responding to the event notification.