#Can't login to the panel with ReCaptcha (continuation)
1 messages · Page 1 of 1 (latest)
there is logs, but my system is 1 hour early so i tought they werent relevant, but yes, there is logs
have you done something to change the recaptcha service URL?
yeah, i used the recaptcha admin console from the logs to get a new key since the panel said its not recommended to keep its key
i resetup the key multiple times but i have no idea what is wrong
wait, url? you can change the url somewhere?
i was pretty sleepy when i typed the inital response so i didnt understood the question correctly
is that it?
It can be changed using the RECAPTCHA_DOMAIN variable in the .env file, but normally there isn't a reason to change it.
But for some reason the code thinks your RECAPTCHA_DOMAIN is not a valid URL. Have you set a RECAPTCHA_DOMAIN in your env ?
The env file can be found at /var/www/pterodactyl/.env. Files starting with a . in Linux are hidden so it may not show up in file browsers by default. You can open it directly with nano /var/www/pterodactyl/.env
well no, its just not in the .env file...
It's not there by default. That's normal.
Not sure why you're getting that error then
What does php artisan tinker --execute="echo config('recaptcha.domain');" give you ?
try php artisan cache:clear and then see if your issue resolves
Sorry I can't think of any reason you would run into that error when your recaptcha domain is perfectly valid
and there is nothing that may cause this issue? like some network stuff or something?
Your server can hit the google recaptcha url right ?
{
"success": false,
"error-codes": [
"invalid-input-response"
]
}```
yes
so its 2 times weirder
it works but inside the panel it doesnt
is there a way to test the captcha with the key in any other way?
?
I will try to do that part
I don't really see how it could be a token issue.
I can't really see any way this could happen, but I have to head off for sleep soon.
oh okay, thanks still, gonna try to see what may be wrong here
gn
just noticed, it doesnt have anything with the keys or stuff, recaptcha just died here, idk why, same message, Unexpected error
Uh, messed up a bit with the code and I noticed something weird, it returns null instead of a link ._.
so somehow the $uri variable gets deleted in the middle or well, it doesnt recive any value from the start
so it means, mb i messed up somewhere, or this thing just gave up on its life
Yeah see that's what I suspected, but I see no reason that should get set to null.
We know laravel is reading config('recaptcha.domain') out of the config properly.
Have you made any modifications or installed any themes etc ?
Maybe take a look at app/Http/Middleware/VerifyReCaptcha.php. Poke at that and see if it's passing the correct url
Not yet but i found a similar issue on github - https://github.com/pterodactyl/panel/issues/4714
gonna try
Figured out that it fails at exactly this step, when i log stuff before it, it logs, after that, the code doesn't work
Please explain the issue you're experiencing in as much detail as possible. Preferably with error messages in a text format or paste link to logs. Nobody can assist you without information that helps to understand the issue. Help us help you. Messages such as "doesn't work" or "i need help" will most likely be ignored.