RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
WebUsers.TValidateUserHandledEvent Type

TValidateUserHandledEvent is the type for event handlers that can validate a user that has just logged in.

Pascal
TValidateUserHandledEvent = procedure (Strings: TStrings; var UserID: Variant; var Handled: Boolean) of object;
C++
(Strings: TStrings; var UserID: Variant; var Handled: Boolean) ( TValidateUserHandledEvent)();

Strings is a string list that contains information the user supplied while logging in. At a minimum, this includes two strings, of the form UserName=Name and Password=Pword, where Name and Pword are strings that the user supplied. If the application uses a custom login form, additional strings may be included as well. 

UserID returns an ID that the event handler supplies to uniquely identify the user that just logged in. 

Handled returns true if the event handler identified the user given the parameters in Strings and supplied an ID using the UserID parameter. Handled returns false if the event handler did not return a user ID for the current user. If Handled returns false, the Web user list proceeds with its own attempt to identify the user and assign a user ID. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!