У меня есть веб-приложение, которое представляет собой игру, и только после определенного количества очков люди могут стать друзьями и должны автоматически добавляться в список друзей друг друга.
Попытка выяснить, как обрабатывать списки в Ejabberd, как это
- запретить любому пользователю добавлять кого-либо самостоятельно
- позволить веб-приложению обрабатывать только изменения в списках ( buddylist )
Использование клиентской библиотеки JS, такой как strophe, не будет безопасным. Мне нужен серверный метод добавления пользователей в список друг друга. Любые мысли о том, как это сделать с Ejabberd?
РЕДАКТИРОВАТЬ: Хорошо, кажется, что mod_rest для ejabberd дает полный доступ к (всем?) методам ejabbard.