Closed ndarilek closed 1 year ago
You're probably the same nolan here and in the forums, right? :)
I posted a reply there: https://forum.invoiceninja.com/t/how-can-i-run-the-react-ui/11915/20?u=rndmh3ro
For me the following happened:
When trying to login I briefly got a error message invalid secret
, then the 404 error appeared.
What helped for me is removing the ÀPI_SECRETfrom the
.env`-file. Then the login did work.
Now what I wonder: is the API_SECRET
still necessary if one uses 2FA?
Oh wow, totally missed that reply. Sorry.
Anyhow, I commented out API_SECRET in the .env file and restarted nginx, no change. Do I need to restart any php-fcgi processes somehow as well?
Update: restarted both php8.0-fpm.service and php-8.1-fpm.service, no change. :(
Oh wow, totally missed that reply. Sorry.
I replied like zwo minutes ago, so no worries.
You have to clear the ninja artisan cache. In the docroot, run php8.1 artisan config:clear
and then php8.1 artisan config:cache
.
Oh, that worked! Thanks. Leaving this open because I'm also a bit unclear as to why the API secret is needed.
One quick question: do you happen to know how to remove the "undefined" from the app title?
I track the status here: #84
Describe the bug
If I enable the React app, logging in doesn't work. Entering my credentials redirects to /login which 404s.
Context
UPDATE accounts SET set_react_as_default_ap = 1;
as per these instructions.Steps to reproduce
UPDATE accounts SET set_react_as_default_ap = 1;
.Expected behavior
I'd like to use the React UI and redirect correctly.