我正在使用 ejabberd 在我的平台上开发一个功能,所以已经有登录、注册页面和 JWT。那么现在我如何在第一次连接到 xmpp 服务器时或在使用 curl 请求注册时传递令牌
curl --location 'http://localhost:5443/api/register' \
--header 'Content-Type: application/json' \
--data '{
"user": "user1",
"password": "password",
"host": "localhost"
}'
我不需要密码字段。我有智威汤逊代替。
我尝试在密码字段中传递 jwt 令牌,但出现以下错误
{
"status": "error",
"code": 10001,
"message": "Can't register user user7@localhost at node ejabberd@localhost: The password contains unacceptable characters"
}