Hello GS
If you are using TADGUIxLoginDialog, then it will trap ekUserPwdInvalid. If you remove TADGUIxLoginDialog and uADGUIxFormsfLogin unit from your application, then your code will work correctly.
To make your code working correctly with login dialog, you should:
- set ADConnection.LogingDialog to TADGUIxLoginDialog
- set TADGUIxLoginDialog.LoginRetries to -1
- apply the following change:
* open uADGUIxManager
* locate there line:
[code] if E.Kind = ekUserPwdInvalid then begin[/code]
* replace it with:
[code] if (E.Kind = ekUserPwdInvalid) and (FLoginRetries >= 0) then begin[/code]
↧