]> granicus.if.org Git - ejabberd/commitdiff
Add specific Var names to CAPTCHA fallback form fields (#2672)
authorBadlop <badlop@process-one.net>
Mon, 12 Nov 2018 16:07:35 +0000 (17:07 +0100)
committerBadlop <badlop@process-one.net>
Tue, 27 Nov 2018 18:10:42 +0000 (19:10 +0100)
src/ejabberd_captcha.erl

index 62cecb9b6c29964582ff98744a3d1bc15fe423cd..9f9d7b03fc450b457d827bf55981f29d9867cabc 100644 (file)
@@ -128,10 +128,10 @@ create_captcha_x(SID, To, Lang, Limiter, #xdata{fields = Fs} = X) ->
                                          "visit the web page.">>),
          Imageurl = get_url(<<Id/binary, "/image">>),
          NewFs = [mk_field(hidden, <<"FORM_TYPE">>, ?NS_CAPTCHA)|Fs] ++
-               [#xdata_field{type = fixed, values = [HelpTxt]},
+               [#xdata_field{type = fixed, var = <<"captcha-fallback-text">>, values = [HelpTxt]},
                 #xdata_field{type = hidden, var = <<"captchahidden">>,
                              values = [<<"workaround-for-psi">>]},
-                #xdata_field{type = 'text-single', var = <<"url">>,
+                #xdata_field{type = 'text-single', var = <<"captcha-fallback-url">>,
                              label = translate:translate(
                                        Lang, <<"CAPTCHA web page">>),
                              values = [Imageurl]},