login error

General Discussion
  • Hello,

    I have a newly installed nodebb since the old had lots of problems. This time I was using redis instead of mongodb. After installation I did run ./nodebb setup I have configured everything in there I start the nodebb. When I try to login with my admin account which was configured at the setup stage I get the following error in console.

       Error: invalid csrf token
         at verifytoken (/NodeBB/node_modules/csurf/index.js:234:13)
         at csrf (/NodeBB/node_modules/csurf/index.js:94:7)
         at Layer.handle [as handle_request] (/NodeBB/node_modules/express/lib/router/layer.js:76:5)
         at trim_prefix (/NodeBB/node_modules/express/lib/router/index.js:263:13)
         at /NodeBB/node_modules/express/lib/router/index.js:230:9
         at Function.proto.process_params (/NodeBB/node_modules/express/lib/router/index.js:305:12)
         at /NodeBB/node_modules/express/lib/router/index.js:221:12
         at Function.match_layer (/NodeBB/node_modules/express/lib/router/index.js:288:3)
         at next (/NodeBB/node_modules/express/lib/router/index.js:182:10)
         at multipart (/NodeBB/node_modules/connect-multiparty/index.js:42:27)
    

    is there anyone who can help me figure this out?

  • apparently this error is caused by the cookies which are saved in the browser. Ones I cleared the cache and cookies I was able to login with no issue.


Suggested Topics


  • 0 Votes
    2 Posts
    245 Views
  • Error Forbidden

    General Discussion
    2 Votes
    6 Posts
    426 Views
  • 0 Votes
    3 Posts
    814 Views
  • 2 Votes
    1 Posts
    646 Views
  • 0 Votes
    39 Posts
    14556 Views