Skip to content
This repository was archived by the owner on Jan 10, 2022. It is now read-only.

User subscription #59

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

User subscription #59

wants to merge 3 commits into from

Conversation

eLFuvo
Copy link

@eLFuvo eLFuvo commented Jul 23, 2017

user subscription presence

@rheman
Copy link

rheman commented Nov 8, 2017

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.

@eLFuvo
Copy link
Author

eLFuvo commented Nov 8, 2017

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.

@rheman
Copy link

rheman commented Nov 8, 2017

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.

@eLFuvo
Copy link
Author

eLFuvo commented Nov 9, 2017

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants