{"action":"created","issue":{"url":"https://api.github.com/repos/NodeBB/NodeBB/issues/6341","repository_url":"https://api.github.com/repos/NodeBB/NodeBB","labels_url":"https://api.github.com/repos/NodeBB/NodeBB/issues/6341/labels{/name}","comments_url":"https://api.github.com/repos/NodeBB/NodeBB/issues/6341/comments","events_url":"https://api.github.com/repos/NodeBB/NodeBB/issues/6341/events","html_url":"https://github.com/NodeBB/NodeBB/issues/6341","id":302095128,"number":6341,"title":"admin login fails with invalid csrf token after clean install v1.7.5","user":{"login":"awunnenb","id":2630920,"avatar_url":"https://avatars0.githubusercontent.com/u/2630920?v=4","gravatar_id":"","url":"https://api.github.com/users/awunnenb","html_url":"https://github.com/awunnenb","followers_url":"https://api.github.com/users/awunnenb/followers","following_url":"https://api.github.com/users/awunnenb/following{/other_user}","gists_url":"https://api.github.com/users/awunnenb/gists{/gist_id}","starred_url":"https://api.github.com/users/awunnenb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awunnenb/subscriptions","organizations_url":"https://api.github.com/users/awunnenb/orgs","repos_url":"https://api.github.com/users/awunnenb/repos","events_url":"https://api.github.com/users/awunnenb/events{/privacy}","received_events_url":"https://api.github.com/users/awunnenb/received_events","type":"User","site_admin":false},"labels":[{"id":183725219,"url":"https://api.github.com/repos/NodeBB/NodeBB/labels/needs%20more%20info","name":"needs more info","color":"fef2c0","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-03-04T15:35:29Z","updated_at":"2018-03-04T17:55:24Z","closed_at":"2018-03-04T16:43:30Z","author_association":"NONE","body":"<!-- \r\n\t== Github Issues are for bug reports and feature requests only ==\r\n\t== Please visit https://community.nodebb.org for other support ==\r\n\t== Found a security exploit? Please email us at security@nodebb.org instead for immediate attention ==\r\n\t==   → DO NOT SUBMIT VULNERABILITIES TO THE PUBLIC BUG TRACKER ==\r\n-->\r\n\r\n<!-- ++ Please include the following information when submitting a bug report ++ -->\r\n\r\n- **NodeBB version:** 1.7.5\r\n- **NodeBB git hash:** bce640e51485c322e25543d51403f92339d90a88\r\n<!-- (to find your git hash, execute `git rev-parse HEAD` from the main NodeBB directory) -->\r\n- **Database type:** mongo\r\n- **Database version:** v3.6.3\r\n<!-- `mongod --version` or `redis-server --version` -->\r\n- **Exact steps to cause this issue:**\r\n\r\n1. clean install ubuntu 16.04\r\n2. install build-essential\r\n3. clean install nodejs v8.9.4\r\n4. clean install mongodb v3.6.3\r\n5. git clone latest nodebb (bce640e)\r\n6. cd /opt/nodebb\r\n7. ./nodebb setup\r\n8. setup finished without errors\r\n9. start ./nodebb start\r\n10. log ./nodebb log\r\n11. setup nginx with ssl instructions from https://nodebb.readthedocs.io/en/latest/configuring/proxies/nginx.html\r\n12. restart nginx with success\r\n13. browse to my new nodebb forum, everything seems to be ok\r\n13. click login and use admin credentials created with setup\r\n\r\n- **What you expected:**\r\nexpected succesful admin login \r\n- **What happened instead:**\r\nlogin fails with invalid csrf token\r\n\r\nLOG:\r\n2018-03-04T15:14:11.066Z [2015] - info: [socket.io] Restricting access to origin: https://<mynodebb.url>:*\r\n2018-03-04T15:14:11.342Z [2015] - info: Routes added\r\n2018-03-04T15:14:11.345Z [2015] - info: NodeBB Ready\r\n2018-03-04T15:14:11.352Z [2015] - info: Enabling 'trust proxy'\r\n2018-03-04T15:14:11.357Z [2015] - info: NodeBB is now listening on: 0.0.0.0:4567\r\n2018-03-04T15:15:13.333Z [2015] - error: /login\r\n invalid csrf token\r\n\r\n<!-- Thank you! -->\r\n"},"comment":{"url":"https://api.github.com/repos/NodeBB/NodeBB/issues/comments/370249055","html_url":"https://github.com/NodeBB/NodeBB/issues/6341#issuecomment-370249055","issue_url":"https://api.github.com/repos/NodeBB/NodeBB/issues/6341","id":370249055,"user":{"login":"awunnenb","id":2630920,"avatar_url":"https://avatars0.githubusercontent.com/u/2630920?v=4","gravatar_id":"","url":"https://api.github.com/users/awunnenb","html_url":"https://github.com/awunnenb","followers_url":"https://api.github.com/users/awunnenb/followers","following_url":"https://api.github.com/users/awunnenb/following{/other_user}","gists_url":"https://api.github.com/users/awunnenb/gists{/gist_id}","starred_url":"https://api.github.com/users/awunnenb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awunnenb/subscriptions","organizations_url":"https://api.github.com/users/awunnenb/orgs","repos_url":"https://api.github.com/users/awunnenb/repos","events_url":"https://api.github.com/users/awunnenb/events{/privacy}","received_events_url":"https://api.github.com/users/awunnenb/received_events","type":"User","site_admin":false},"created_at":"2018-03-04T17:55:24Z","updated_at":"2018-03-04T17:55:24Z","author_association":"NONE","body":"git clone -b v1.7.0 https://github.com/NodeBB/NodeBB.git nodebb\r\n\r\neverything works fine."}}
{"actor":{"display_login":"awunnenb"}}