Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

NodeBB

  1. Home
  2. Technical Support
  3. Login Request always forbidden.

Login Request always forbidden.

Scheduled Pinned Locked Moved Technical Support
11 Posts 4 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M [email protected]

    Due to unknown reasons, my Nodebb instance always returns an invalid csrf token when trying to access it, and when attempting to register, it always shows that the name is already taken even though there are no duplicate names.
    There's no suspicious logs so I can only provide this information, are there any possibly effective fixes?

    M This user is from outside of this forum
    M This user is from outside of this forum
    [email protected]
    wrote last edited by
    #2

    {
    "url": "http://xxx.xxx.xx",
    "secret": "16af4904-abb5-4d7d-95ba-593cb6563e7a",
    "database": "mongo",
    "mongo": {
    "host": "127.0.0.1",
    "port": 27017,
    "username": "",
    "password": "",
    "database": "nodebb",
    "uri": "xxx"
    },
    "port": 4567,
    "bind_address": "0.0.0.0",
    "debug": true
    }

    1 Reply Last reply
    0
    • M [email protected]

      Due to unknown reasons, my Nodebb instance always returns an invalid csrf token when trying to access it, and when attempting to register, it always shows that the name is already taken even though there are no duplicate names.
      There's no suspicious logs so I can only provide this information, are there any possibly effective fixes?

      M This user is from outside of this forum
      M This user is from outside of this forum
      [email protected]
      wrote last edited by
      #3

      Additionally, when one person is temporarily banned for trying the password too many times, everyone will be banned together which is strange.

      1 Reply Last reply
      0
      • M [email protected]

        Due to unknown reasons, my Nodebb instance always returns an invalid csrf token when trying to access it, and when attempting to register, it always shows that the name is already taken even though there are no duplicate names.
        There's no suspicious logs so I can only provide this information, are there any possibly effective fixes?

        baris@community.nodebb.orgB This user is from outside of this forum
        baris@community.nodebb.orgB This user is from outside of this forum
        [email protected]
        wrote last edited by
        #4

        The csrf error is usually caused by wrong url in your config.json, make sure it is the same as the address you are accessing the forum. Your other issues are likely caused by something else.

        1 Reply Last reply
        0
        • M [email protected]

          Due to unknown reasons, my Nodebb instance always returns an invalid csrf token when trying to access it, and when attempting to register, it always shows that the name is already taken even though there are no duplicate names.
          There's no suspicious logs so I can only provide this information, are there any possibly effective fixes?

          M This user is from outside of this forum
          M This user is from outside of this forum
          [email protected]
          wrote last edited by
          #5

          I don't think url cause this issue.

          julian@community.nodebb.orgJ 1 Reply Last reply
          0
          • M [email protected]

            I don't think url cause this issue.

            julian@community.nodebb.orgJ This user is from outside of this forum
            julian@community.nodebb.orgJ This user is from outside of this forum
            [email protected]
            wrote last edited by
            #6

            M1hono also check that cookieDomain is not set to anything in ACP

            Can you share your nginx config?

            1 Reply Last reply
            0
            • M [email protected]

              Due to unknown reasons, my Nodebb instance always returns an invalid csrf token when trying to access it, and when attempting to register, it always shows that the name is already taken even though there are no duplicate names.
              There's no suspicious logs so I can only provide this information, are there any possibly effective fixes?

              M This user is from outside of this forum
              M This user is from outside of this forum
              [email protected]
              wrote last edited by
              #7

              I restart the whole project and it's fine for now. I might asume it's related to the mismatching between database and nodebb secret.

              1 Reply Last reply
              0
              • M [email protected]

                Due to unknown reasons, my Nodebb instance always returns an invalid csrf token when trying to access it, and when attempting to register, it always shows that the name is already taken even though there are no duplicate names.
                There's no suspicious logs so I can only provide this information, are there any possibly effective fixes?

                M This user is from outside of this forum
                M This user is from outside of this forum
                [email protected]
                wrote last edited by
                #8

                This seems to be caused by the slug, as my community is a non-English speaking community, and the current slug generates very cumbersome links, so I tried modifying slug.js, and then encountered similar issues.

                I reproduce the issue and I think it might be the final answer lol.

                1 Reply Last reply
                0
                • M [email protected]

                  Due to unknown reasons, my Nodebb instance always returns an invalid csrf token when trying to access it, and when attempting to register, it always shows that the name is already taken even though there are no duplicate names.
                  There's no suspicious logs so I can only provide this information, are there any possibly effective fixes?

                  M This user is from outside of this forum
                  M This user is from outside of this forum
                  [email protected]
                  wrote last edited by
                  #9

                  Is there any way of chaging the slug in a normal waIs there any way of chaging the slug in a normal way?

                  1 Reply Last reply
                  0
                  • M [email protected]

                    Due to unknown reasons, my Nodebb instance always returns an invalid csrf token when trying to access it, and when attempting to register, it always shows that the name is already taken even though there are no duplicate names.
                    There's no suspicious logs so I can only provide this information, are there any possibly effective fixes?

                    sondra-shelton@community.nodebb.orgS This user is from outside of this forum
                    sondra-shelton@community.nodebb.orgS This user is from outside of this forum
                    [email protected]
                    wrote last edited by
                    #10

                    I also faced the same.

                    1 Reply Last reply
                    0
                    • M [email protected]

                      Due to unknown reasons, my Nodebb instance always returns an invalid csrf token when trying to access it, and when attempting to register, it always shows that the name is already taken even though there are no duplicate names.
                      There's no suspicious logs so I can only provide this information, are there any possibly effective fixes?

                      M This user is from outside of this forum
                      M This user is from outside of this forum
                      [email protected]
                      wrote last edited by
                      #11

                      I've found a plugin that solved it.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Login or register to search.
                      Powered by NodeBB Contributors
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups