Fix account registration when captcha is enabled but not provided
authorEgor Kislitsyn <egor@kislitsyn.com>
Wed, 29 Apr 2020 10:31:13 +0000 (14:31 +0400)
committerEgor Kislitsyn <egor@kislitsyn.com>
Wed, 29 Apr 2020 17:26:07 +0000 (21:26 +0400)
lib/pleroma/web/twitter_api/twitter_api.ex

index cf1d9c74c00ab9f60f1d10e73bb129e99c114430..a6ef9a310ccb8ee2ad9e05040c78aa29e9e2009d 100644 (file)
@@ -47,9 +47,9 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do
       :ok
     else
       Pleroma.Captcha.validate(
-        params.captcha_token,
-        params.captcha_solution,
-        params.captcha_answer_data
+        params[:captcha_token],
+        params[:captcha_solution],
+        params[:captcha_answer_data]
       )
     end
   end