RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
WebUsers.TValidateUserErrorEvent Type

TValidateUserErrorEvent is the type for event handlers that compensate for errors that occur when trying to validate a user that is logging in.

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

Error indicates what type of problem was encountered while trying to validate the user. 

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 compensated for the error and identified the user given the parameters in Strings and supplied an ID using the UserID parameter. Error returns false if the event handler could not compensate for the error. 

 

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