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:
parent
9a32615122
commit
5168f68946
|
@ -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 ->
|
||||
|
|
Loading…
Reference in New Issue
Block a user