{"action":"created","issue":{"url":"https://api.github.com/repos/NodeBB/NodeBB/issues/2760","labels_url":"https://api.github.com/repos/NodeBB/NodeBB/issues/2760/labels{/name}","comments_url":"https://api.github.com/repos/NodeBB/NodeBB/issues/2760/comments","events_url":"https://api.github.com/repos/NodeBB/NodeBB/issues/2760/events","html_url":"https://github.com/NodeBB/NodeBB/issues/2760","id":58642293,"number":2760,"title":"invalid csrf token in branch 0.6.x","user":{"login":"laudney","id":106273,"avatar_url":"https://avatars.githubusercontent.com/u/106273?v=3","gravatar_id":"","url":"https://api.github.com/users/laudney","html_url":"https://github.com/laudney","followers_url":"https://api.github.com/users/laudney/followers","following_url":"https://api.github.com/users/laudney/following{/other_user}","gists_url":"https://api.github.com/users/laudney/gists{/gist_id}","starred_url":"https://api.github.com/users/laudney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laudney/subscriptions","organizations_url":"https://api.github.com/users/laudney/orgs","repos_url":"https://api.github.com/users/laudney/repos","events_url":"https://api.github.com/users/laudney/events{/privacy}","received_events_url":"https://api.github.com/users/laudney/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-23T20:22:15Z","updated_at":"2015-02-24T18:01:11Z","closed_at":null,"body":"After upgrading from 0.5.7 to 0.6.x, we keep getting invalid csrf error on login and logout. We have installed nodebb-theme-lavender at version 0.2.13 and nodebb-theme-vanilla at version 0.2.35.\r\n\r\n23/2 15:15 [2525] - error: /login\r\n ForbiddenError: invalid csrf token\r\n    at verifytoken (/home/reddcoin/reddcointalk.org/node_modules/csurf/index.js:263:11)\r\n    at csrf (/home/reddcoin/reddcointalk.org/node_modules/csurf/index.js:93:7)\r\n    at Layer.handle [as handle_request] (/home/reddcoin/reddcointalk.org/node_modules/express/lib/router/layer.js:82:5)\r\n    at next (/home/reddcoin/reddcointalk.org/node_modules/express/lib/router/route.js:110:13)\r\n    at Route.dispatch (/home/reddcoin/reddcointalk.org/node_modules/express/lib/router/route.js:91:3)\r\n    at Layer.handle [as handle_request] (/home/reddcoin/reddcointalk.org/node_modules/express/lib/router/layer.js:82:5)\r\n    at /home/reddcoin/reddcointalk.org/node_modules/express/lib/router/index.js:267:22\r\n    at Function.proto.process_params (/home/reddcoin/reddcointalk.org/node_modules/express/lib/router/index.js:321:12)\r\n    at next (/home/reddcoin/reddcointalk.org/node_modules/express/lib/router/index.js:261:10)\r\n    at Function.proto.handle (/home/reddcoin/reddcointalk.org/node_modules/express/lib/router/index.js:166:3)\r\n23/2 15:15 [2525] - error: /logout\r\n ForbiddenError: invalid csrf token\r\n    at verifytoken (/home/reddcoin/reddcointalk.org/node_modules/csurf/index.js:263:11)\r\n    at csrf (/home/reddcoin/reddcointalk.org/node_modules/csurf/index.js:93:7)\r\n    at Layer.handle [as handle_request] (/home/reddcoin/reddcointalk.org/node_modules/express/lib/router/layer.js:82:5)\r\n    at next (/home/reddcoin/reddcointalk.org/node_modules/express/lib/router/route.js:110:13)\r\n    at Route.dispatch (/home/reddcoin/reddcointalk.org/node_modules/express/lib/router/route.js:91:3)\r\n    at Layer.handle [as handle_request] (/home/reddcoin/reddcointalk.org/node_modules/express/lib/router/layer.js:82:5)\r\n    at /home/reddcoin/reddcointalk.org/node_modules/express/lib/router/index.js:267:22\r\n    at Function.proto.process_params (/home/reddcoin/reddcointalk.org/node_modules/express/lib/router/index.js:321:12)\r\n    at next (/home/reddcoin/reddcointalk.org/node_modules/express/lib/router/index.js:261:10)\r\n    at Function.proto.handle (/home/reddcoin/reddcointalk.org/node_modules/express/lib/router/index.js:166:3)"},"comment":{"url":"https://api.github.com/repos/NodeBB/NodeBB/issues/comments/75810234","html_url":"https://github.com/NodeBB/NodeBB/issues/2760#issuecomment-75810234","issue_url":"https://api.github.com/repos/NodeBB/NodeBB/issues/2760","id":75810234,"user":{"login":"julianlam","id":923011,"avatar_url":"https://avatars.githubusercontent.com/u/923011?v=3","gravatar_id":"","url":"https://api.github.com/users/julianlam","html_url":"https://github.com/julianlam","followers_url":"https://api.github.com/users/julianlam/followers","following_url":"https://api.github.com/users/julianlam/following{/other_user}","gists_url":"https://api.github.com/users/julianlam/gists{/gist_id}","starred_url":"https://api.github.com/users/julianlam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julianlam/subscriptions","organizations_url":"https://api.github.com/users/julianlam/orgs","repos_url":"https://api.github.com/users/julianlam/repos","events_url":"https://api.github.com/users/julianlam/events{/privacy}","received_events_url":"https://api.github.com/users/julianlam/received_events","type":"User","site_admin":false},"created_at":"2015-02-24T18:01:11Z","updated_at":"2015-02-24T18:01:11Z","body":"Just a thought... what happens if you clear all of the cookies related to reddcointalk.org? Does the login start working then?"}}