xmpp
xmpp copied to clipboard
User subscription
user subscription presence
Hi eLFuvo. I am using your custom fabiang library but StanzasErrorException is not triggered . am using the library for managing my ejabberd user. But https://xmpp.org/extensions/xep-0086.html seems to be deprecated and was rolled into the new [xmpp-core] http://xmpp.org/rfcs/rfc6120.html. Stanza errors are defined in https://xmpp.org/rfcs/rfc6120.html#stanzas-error and https://xmpp.org/rfcs/rfc3920.html#rfc.section.9.3.3. So when try to register a user throuh fabiang library everything works perferctly. But when I try to register one more time and existing user the StanzasErrorException is not triggered. Could someone help me ? I dont know what's wrong with my settings. Best ragard.
Hi rheman. When I was developing this protocol, I was misread the description of the this situation in a protocol. There is https://xmpp.org/rfcs/rfc3920.html#rfc.section.9.3.3 no Stanza error for registration of existing user, XMPP server returns ok answer.
So, for resolve this situation try to change password for this user after user registration.
I did it I have trried to register user with a different password . But it still return print 'User is registered' . PHP_EOL; and not 'User already exists. Try to change password' Best regard.
When you try to register user that is already exists on XMPP server it returns ok answer, but not change password. This is a protocol problem, not server.
Stanza error Conflict returns only when you trying do something with a same session id or resources id, but different users.
You must change password after registartion procedure for ensure that the password of user is actual.