AuthPassword Event
This event is fired on password authentication attempt from a client.
Syntax
typedef struct { __int64 ConnectionID; String Username; String Password; bool Accept; bool ForceChangePassword; } TsbxSFTPServerAuthPasswordEventParams; typedef void __fastcall (__closure *TsbxSFTPServerAuthPasswordEvent)(System::TObject* Sender, TsbxSFTPServerAuthPasswordEventParams *e); __property TsbxSFTPServerAuthPasswordEvent OnAuthPassword = { read=FOnAuthPassword, write=FOnAuthPassword };
Remarks
Parameters Username and Password contain user credentials. If they are correct, set Accept to true. You can request password change by setting ForceChangePassword to true.