RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TLoginFormAdapter.PasswordRequired Property

Indicates whether the user must supply a password to log in.

Pascal
property PasswordRequired: Boolean;
C++
__property Boolean PasswordRequired;

Set PasswordRequired to indicate whether users must supply a password to log in. If PasswordRequired is true and the OnValidatePassword event handler does not handle the validation of the password, then the login form adapter checks that the value of Password is not an empty string. If Password is an empty string, the login form adapter raises an EAdapterFieldException exception when it tries to validate the password. If the OnValidatePassword event handler takes care of validating the password, PasswordRequired is ignored.

Note: The login form adapter validates the password (and hence checks PasswordRequired) when the WebSnap application executes this adapter's Login action.
 

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