2 Factor Authentication cannot be set

When trying to enable 2 factor authentication, there is a circle that turns around forever. No error message, no log entry (despite debut level).

What could be the issue?

Hi,

Are there any errors in the browser console?

No, just a get request: GET: https://invoices.xyz.com/api/v1/settings/enable_two_factor?

Does the route return a valid response?

No, it does not return any response.

If I paste this URL in a new browser window, I get: {“message”:“Invalid token”,“errors”:{}}

Is the URL in the request correct?

Does the request timeout?

The request does not seem to time out. If the URL in the request is correct? Only the programmer can tell, but it looks correct to me. :slight_smile: At least, it is the URL where the software is installed.

Somehow it appears to me that some parameters are missing.

@david do you have any ideas?

I’m not sure, are there any messages in storage/logs/laravel.log ?

Hi David, no there is nothing in the log. I even deleted it before executing the link.

Does anyone have a hint for me?

OK, I have setup the software with Email = Log. The Mail address was not verified. This seems to prevent the 2FA. It’s working now.

Glad to hear it’s working, thanks for the details!

We’ll make sure it’s corrected.