RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomLoginFormAdapter.OnLogin Event

Occurs after the password and user ID are validated.

Pascal
property OnLogin: TLoginUserIDEvent;
C++
__property TLoginUserIDEvent OnLogin;

Write an OnLogin event handler to respond when a user has successfully logged in. This event allows your application to record the user login in an application-specific manner. 

When the login form adapter's Login action executes, the adapter first receives an OnValidatePassword and an OnValidateUserName event. After validating the password and user name, the login form adapter receives an OnLogin event so that it can log the user in. After the OnLogin event, if the WebSnap application includes an end user adapter, the login form adapter calls the end user adapter's Login method. Thus, it may not be necessary to write an OnLogin event handler if the application includes an end user adapter. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!