I implemented the OnCheckUserKey event and it is being called twice, is it supposed to be called twice?
I have logging in the event and it's showing the event firing twice.
Then after the second time the user is logged in and everything is fine.
This is the output from the log:
(It's a log queue that pushes every second)
02/26/2016 03:13:48 PM:[Logon] User xxxxx logged in from 127.0.0.1:63887 (Auth Type: SFTP Pubkey)
02/26/2016 03:13:50 PM:[Logon] User xxxxX logged in from 127.0.0.1:63887 (Auth Type: SFTP Pubkey)
I noticed that the second time it is called the clientinfo.data is not nil like the first time so I put this in there for now:
Code: Select all
if assigned(ClientInfo.Data) then
begin
Accept:=true;
exit;
end;