[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'DB' (#fcl)

# TLoginEvent

Login event handler

## Declaration

Source position: db.pas line 1999

`type TLoginEvent = procedure(`
`Sender: TObject;`
`Username: string;`
`Password: string`
`) of object;`

## Arguments

`Sender` |  | TCustomConnection that is attempting a login
`Username` |  | Username used to log in
`Password` |  | Password used to log in.

## Description

TLoginEvent is the prototype for the TCustomConnection.OnLogin event handler. It gets passed the TCustomConnection instance that is trying to login, and the initial username and password.

## See also

TCustomConnection.OnLogin |  | Event triggered when a login prompt is shown.

Documentation generated on: May 14 2021