Logout Behavior
-
Has anybody else noticed/have the same as me?
When I click on logout nothing happens. Normally you would be taken to the login screen right?
It does nothing even though you ARE actually logged out. The page needs refreshing to show this. Also when I click on the ACP/Admin link whilst logged in it takes me to login again...and again....and again..and again without taking me to ACP.
I have to go through the logout process as described above. Refresh the screen so it actually shows I am logged out. Then login again and then go to ACP in which case it lets me in.
2022-07-17T08:10:57.485Z [4567/60980] - [31merror[39m: POST /logout
Error: req#logout requires a callback function
at IncomingMessage.req.logout.req.logOut (/home/smiley/nodebb/node_modules/passport/lib/http/request.js:65:44)
at authenticationController.logout (/home/smiley/nodebb/src/controllers/authentication.js:473:7)
at processTicksAndRejections (internal/process/task_queues.js:95:5) -
Can you provide the output of
npm ls passport
Also what NodeBB version are you on etc
-
@Sampo2910 said in Logout Behavior:
Last time I updated npm nothing worked at all. Had to role back again. I have other applications that stopped also. I need to update for this problem you think?
Run
./nodebb upgrade -mi
please. Sounds like your dependencies are not installed properly. -
@Sampo2910 does logging out work now, after running the following?
./nodebb stop ./nodebb build ./nodebb start
-
Try deleting node_modules by running the following:
./nodebb stop rm -rf node_modules ./nodebb upgrade ./nodebb start
What version of NodeBB? What version of Nodejs? Have you tried disabling plugins?
-
Latest NodeBB and
Node 14.7.3
Not tried disabling plugins? I don't have many. This is fresh install. Still cannot add some plugins through git either. Others say on here that they work with latest NodeBB. Not for me.
I will try what you said...bye bye forum lol...lets see.ยจ
###UPDATE####
It worked. I can now logout properly and get to ACP in the first attempt (without logging out and in again)
Thank you.
-