auth_required 40201
Hello, I have a problem with the PHP code below. I have recreated the account but always get the answer:
Array
(
[success] =>
[error] => Array
(
[error_code] => auth_required
[detail] => [40201]
)
)
secret, sitekey, frc-captcha-response are filled (I have only made replacements here. In the backend it says for v1 and v2 “Integration status is pending. Check the application details for more information.”
`
"; print_r($_POST); echo ""; $url = 'https://global.frcapi.com/api/v2/captcha/siteverify'; $data = array( "secret" => friendlycaptchaKEYSECRETV2, "sitekey" => friendlycaptchaKEYPUBLICV2, "frc-captcha-response" => $_POST['frc-captcha-response'], ); echo "";
echo "$url";;
echo "";
echo "";
print_r($data);
echo "";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$json = curl_exec($ch);
#echo ""; print_r ($json); echo ""; $info = curl_getinfo($ch); $http_code = $info["http_code"]; curl_close($ch); $request = json_decode($json, true); echo "
";
print_r($request);
echo "";
if ($request['success'] == 1) {
?>
<div class="alert alert-success col-md-12">
<button type="button" class="close" data-dismiss="alert" aria-label="Schließen">
<span aria-hidden="true">×</span>
</button>
Das ist möglich Captcha erfolgreich
</div>
<?php exit;
} else {
?>
<div class="alert alert-danger col-md-12">
<button type="button" class="close" data-dismiss="alert" aria-label="Schließen">
<span aria-hidden="true">×</span>
</button>
Das ist nicht möglich Captcha Sperre <?= $request['errors'][0]; ?>
</div>
<?php exit;
}
} ?>
<script type="module" src="https://cdn.jsdelivr.net/npm/@friendlycaptcha/[email protected]/site.min.js" async
defer></script>
<script nomodule src="https://cdn.jsdelivr.net/npm/@friendlycaptcha/[email protected]/site.compat.min.js" async
defer></script>
<!---
<script
type="module"
src="https://cdn.jsdelivr.net/npm/[email protected]/widget.module.min.js"
async
defer
>
</script>
<script nomodule src="https://cdn.jsdelivr.net/npm/[email protected]/widget.min.js" async defer></script>
--->
<form method="post" action="friendlycaptchaV2.php?type=save">
<input name="email" type="email">
<input name="password" type="password">
<button name="login" type="submit">Login</button>
<div class="frc-captcha" data-sitekey="FCMJH3272J5QNM47"></div>
</form>
the answer is:Array
(
[email] => [email protected]
[password] => cyxvcyc
[login] =>
[frc-captcha-response] => WrNT4Nip9RWJ1BMpMeH6DGTeGkO0u59dOgu_0ciH_FDS8TOLZNWVsfHo7aM5OmsWdY8FUmnfahDNLe7KapjW6QnBLlWRh0foYKmEk4Psj6j5gY4cB7OdSpwjPfeq4AJr8PxAw4duV45ueH6j0IArGv8Vw6sCNccf8k5-Hv2wdm1mbSY4KQ__Tss7IXAfFgfsndeVioMsF894K4yt2_2czJZ4Co4LAZIBu6lkNyJq60fwLQ994tW2JgGMCIA1z7oAl4zsqpInA5XnEar-2rp3BzRRwlbynSTbU_nnrHHfTjsNQu7QvGlOrC4FuEUKGQnQ3Gw40liaYN6beSzy1AfVHio4JtNDIfUPF5b3XMUtIb_50HW_ZylAN6xRKsVj5BxlyPIOnhzoNkYljgHuf43lFnMU_72_Sl1QwwUZsRt7xUExXPsBJQ==
)
https://global.frcapi.com/api/v2/captcha/siteverify
Array ( [secret] => X123X [sitekey] => Y123Y [frc-captcha-response] => ZZZZZZZZZZZZZZZ= )
Array ( [success] => [error] => Array ( [error_code] => auth_required [detail] => [40201] )
)
Das ist nicht möglich Captcha Sperre `