1. For example, you can use a username and password to register without an email address
  2. For example, you can customize a login and registration page. Just pass the data through the API to the FlARUM API to register
    Is the above method feasible?
    @askvortsov @luceos

    BILLFuYiWei POST /api/users still exists. But you need to use an API key or access token to bypass the CSRF protection.

    The GitHub repository you linked doesn't contain any documentation (I think?). Official documentation is at https://docs.flarum.org/ but I think the page about API keys is still missing. There's information on how to create those keys somewhere on the forum but I don't have the link right now.

      I have a new problem when I call this interface post api/users, it returns an error
      {
      "errors": [
      {
      "status": "422",
      "code": "validation_error",
      "detail": "username 不能为空。",
      "source": {
      "pointer": "/data/attributes/username"
      }
      },
      {
      "status": "422",
      "code": "validation_error",
      "detail": "email 不能为空。",
      "source": {
      "pointer": "/data/attributes/email"
      }
      },
      {
      "status": "422",
      "code": "validation_error",
      "detail": "password 不能为空。",
      "source": {
      "pointer": "/data/attributes/password"
      }
      }
      ]
      }

      I tried any away to request this API, Body, Params, form-data.
      I requested this interface using the Postman tool,
      What should I do?

        BILLFuYiWei what's your payload?

        JSON:API syntax is something like this:

        {
            "data": {
                "attributes": {
                    "email": ""
                }
            }
        }

          clarkwinkelmann Thank you very much, It's working now, my payload before is
          {
          "data": {
          "username": "test1122",
          "email": "test1122@qq.com",
          "password": "12345678",
          "nickname": "test1122"
          }
          }

            a year later
            7 days later