Authenticating via Email address

Hi there,

I'm creating user accounts on my eJabberd server using the agsXMPP library. When I register an account I also provide an email address. Although I have no idea how to see this email address in the eJabberd admin interface, I presume it gets stored? If not, how can I configure the server to store this address?

Also I would like to be able to login via this address, as opposed to the Jabber ID, is this possible? i.e. login with bob@hotmail.com, rather than bob@messaging.somesever.com etc.

Thanks a million in advance for your time and help.

Nick.

> I register an account I

> I register an account I also provide an email address.

You didn't specify how you register the account. Maybe your client uses XEP-0077. ejabberd implements this in mod_register. The source code of that module does not mention "email" in any place. Maybe your client specifies an email, but ejabberd doesn't store it anywhere.

> I would like to be able to login via this address, as opposed to the Jabber ID, is this possible?

It seems the clients and the server would need to support XEP-0106. I am not sure if ejabberd supports it or not, see
JID escaping

As i understood, I am

As i understood, I am searching such possibility too.
I found http://www.ejabberd.im/mod_register_web where author is you :)
I was very happy when read:
* Allow private email during register, and store in custom table.
* Optionally require private email to register.
* Optionally require email confirmation to register.

but was grieved when see the name of section: "FEATURE REQUESTS"

There is no problem to add "email" to form, store it to mysql table... But send email and waiting confirmation is very difficalt with my erl knowlage.

Do you planning to realize such requests?
Is there any terms?

Thanks.

If you have a web server like

If you have a web server like Apache and PHP already set in the same machine, you can write a simple PHP page that asks username+password+email, then sends an email. When the user visits your confirmation page, with PHP you execute in the system shell "ejabberdctl register username jabberserver password", and also store the email in MySQL if you want.

Syndicate content