Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can use registration function without use submit #23

Open
alialshara94 opened this issue May 31, 2023 · 6 comments
Open

how can use registration function without use submit #23

alialshara94 opened this issue May 31, 2023 · 6 comments

Comments

@alialshara94
Copy link

i have my xmpp server and this server user simple auth with user jid and password
i need to use register function and pass only jid and password

@hantu85
Copy link
Contributor

hantu85 commented Jun 1, 2023

Even if your XMPP server does not support DataForm-based account registration (and you have open In-Band Registration, that may not be good as you do not have any protection against spammers creating account on your server), you can use submit, just pass a form with username and password fields filled in. Library will automatically detect that your server does not support DataForms and will use non-DataForm registration using values from username and password fields.

@alinaeemx
Copy link

alinaeemx commented Jun 1, 2023

@hantu85
Is there a method that can be used for register account without the needs for passing a form for it where I need to register account with only username and password directly on the server without registration form to be filled.

@hantu85
Copy link
Contributor

hantu85 commented Jun 1, 2023

You can always modify the source code of the library or pass the form (even if the server doesn't need it).

If not, you cannot use AccountRegistration(Async)Task, but you can implement task for registering an account yourself using register method of InBandRegistrationModule

@hantu85
Copy link
Contributor

hantu85 commented Jun 1, 2023

Usage of form is preferred as now many servers provide captcha during registration (available only in forms) and with usage of form (as unified way to register the account) in the API is a simplification, as the client only need to implement registration using forms (transformation to/from old non-form-based mechanism is handled by the library).

@alinaeemx
Copy link

@hantu85
When I tried to use the register method of InBandRegistrationModule and pass the registration info to it I got an error says remote-server-timeout

@kamalkumar13
Copy link

@alinaeemx I am getting same:
When I tried to use the register method of InBandRegistrationModule and pass the registration info to it I got an error says remote-server-timeout

How did you fix this?

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

No branches or pull requests

4 participants