Version 2.8.2: Unable to register or login
-
Fairly new to NodeBB. Just got one site up with PostgreSQL as the backend.
Initially version 1.5.1 was installed which has been upgraded to ver 2.8.2 a few days ago.
It is still running in dev mode, so I only got one user registered from the initial installation. Now I am not able to register any new user.
Every time I try, I get an error message:
Registration Error
We were unable to log you in, likely due to an expired session. Please try againOn the console, I see logs like this:
2023-01-24T06:51:40.275Z [4567/73890] - error: POST /register
invalid csrf tokenAt this point, I don't know how to proceed. Any help would be greatly appreciated.
-
Have you tried clearing cookies?
-
@ww9rivers this is for MongoDB, but along the same lines
https://sudonix.com/topic/249/invalid-csrf-on-dev-install?_=1674610542465 -
@PitaJ - Yes, I have. Tried different browsers, private windows, etc. No luck.
@phenomlab - I think the cookieDomain setting may be what I need. Could you please be more specific? Do I need to clear that setting (as shown in your linked post)? Or set it specifically to my domain? I ask because the current setting seems to be empty (not set to anything.)
Thank you both for your responses.
-
@ww9rivers It needs to be executed against the production database you are using - however, the code provided is for MongoDB, so I am almost positive there will be an alternative you'd need to use for Postgres. Perhaps @baris or @julian can assist with this part.
-