#Can't login to the panel with ReCaptcha (continuation)

1 messages · Page 1 of 1 (latest)

hexed sluice
#

A continuation of #1281783408372092969 message (No idea why it was closed, since i was sleeping)

I was asked for logs - https://ptero.co/jurukicusu

#

there is logs, but my system is 1 hour early so i tought they werent relevant, but yes, there is logs

ocean marsh
#

have you done something to change the recaptcha service URL?

hexed sluice
#

i resetup the key multiple times but i have no idea what is wrong

hexed sluice
#

i was pretty sleepy when i typed the inital response so i didnt understood the question correctly

#

is that it?

ocean marsh
#

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 ?

proper valeBOT
#

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

hexed sluice
ocean marsh
#

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 ?

hexed sluice
ocean marsh
#

try php artisan cache:clear and then see if your issue resolves

hexed sluice
#

nope

#

well hang on im gonna restart the worker

#

no nvm, still nothing

ocean marsh
#

Sorry I can't think of any reason you would run into that error when your recaptcha domain is perfectly valid

hexed sluice
ocean marsh
#

Your server can hit the google recaptcha url right ?

{
  "success": false,
  "error-codes": [
    "invalid-input-response"
  ]
}```
hexed sluice
#

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?

ocean marsh
#

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.

hexed sluice
#

gn

hexed sluice
#

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

ocean marsh
#

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

hexed sluice
hexed sluice
#

Figured out that it fails at exactly this step, when i log stuff before it, it logs, after that, the code doesn't work

proper valeBOT
#

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.

hexed sluice
#

ahh wth is with this, its factory new, why its not working

#

Uhhh, i have no idea what ive done, but its just fucking started working

#

I seriously have no idea what changed, what ive done different or any other kind of stuff, but its just worked