如何将应用程序 ID 注册到 ejabberd 服务器的数据库中?

how can I register app id into ejabberd server's database?

我们正在使用移动 xmpp 客户端与 ejabberd 服务器聊天。在注册期间,我们希望将以下字段:JID, Password, appID 发送到 xmpp 服务器。

我应该查看哪个模块来合并此更改?我还想将 appID 存储在数据库中的 ejaberd 用户 table 中。在我们当前的安装中,我们可以进一步看到密码。我应该调用 ejabberd 的哪个模块来加密存储密码。我们也可以使用加密密码验证用户吗?任何指向正确方向的建议和指示都会有很大帮助。

We are using a mobile xmpp client to chat with ejabberd server. During the registration, we want the following fields: JID, Password and the appID to be sent to the xmpp server ( ejabberd here). Which module should I look into to incorporate this change? I also want to store the appID in ejaberd's users table in the database.

mod_register 注册时只需要用户名和密码。如果您想在注册期间存储其他详细信息,则必须修改该模块的源代码。或者您可以将 appid 和任何其他信息存储在帐户 vcard 中,一旦帐户被创建并且客户端登录到它。

Further in our current installation we can see the password . which module of ejabberd should I invoke to encrypt the password and store the encrypted passwords. Also can we verify the user using the encrypted password? Any suggestion and pointers to the right direction will be of great help.

如果您在 ejabberd 配置文件中启用 SCRAM,密码将被加密存储(即加密)。