Re: Unable to log in after turning off cloudflare proxy
-
@baris Not related to this, but I am also facing a problem due to csrf token. I earlier used cloudflare SSL on my nodebb instance but now have turned it off because it was giving issues with loading media for federated accounts. My account was auto logged off and now I cannot login. Everytime I try to login, I get the error "Login Unsuccessful
We were unable to log you in, likely due to an expired session. Please try again" and the url bar shows/login?error=csrf-invalid
This happens both for admin as well as non-admin user. I have turned on-off-on as well as restarted both nodebb and nginx but the problem remains. Any suggested solution?
-
@baris Not related to this, but I am also facing a problem due to csrf token. I earlier used cloudflare SSL on my nodebb instance but now have turned it off because it was giving issues with loading media for federated accounts. My account was auto logged off and now I cannot login. Everytime I try to login, I get the error "Login Unsuccessful
We were unable to log you in, likely due to an expired session. Please try again" and the url bar shows/login?error=csrf-invalid
This happens both for admin as well as non-admin user. I have turned on-off-on as well as restarted both nodebb and nginx but the problem remains. Any suggested solution?
Couple things to check.
- Make sure url in config.json is same as the url you use to access the site.
- Make sure your load balancer is configured properly for ssl.
-
@baris Not related to this, but I am also facing a problem due to csrf token. I earlier used cloudflare SSL on my nodebb instance but now have turned it off because it was giving issues with loading media for federated accounts. My account was auto logged off and now I cannot login. Everytime I try to login, I get the error "Login Unsuccessful
We were unable to log you in, likely due to an expired session. Please try again" and the url bar shows/login?error=csrf-invalid
This happens both for admin as well as non-admin user. I have turned on-off-on as well as restarted both nodebb and nginx but the problem remains. Any suggested solution?
Can you try in incognito, and see whether that works? If so, then you need to clear all of your session cookies on your main browser session.