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

# TLoginEvent

Login event handler

## Declaration

Source position: db.pas line 1878

`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 a the 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: Feb 26 2014