24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-06 21:37:17 +02:00

Don't add Pid to Captcha record when it's requested by c2s instead of muc

This commit is contained in:
Badlop 2010-11-03 14:05:27 +01:00
parent 9a32615122
commit 5168f68946

View File

@ -310,8 +310,7 @@ create_captcha_x(SID, To, Lang, HeadEls, TailEls) ->
] ++ TailEls
},
Tref = erlang:send_after(?CAPTCHA_LIFETIME, ?MODULE, {remove_id, Id}),
case ets:insert(captcha, #captcha{id=Id, pid=self(), key=Key,
tref=Tref}) of
case ets:insert(captcha, #captcha{id=Id, key=Key, tref=Tref}) of
true ->
{ok, [Captcha, Data]};
_Err ->