How to change required fields for mod_register in ejabberd

Going through http://xmpp.org/extensions/xep-0077.html#intro, section 3.1 I see that the client should request which fields are required for in-band registration from the host. In case of ejabberd mod_register is used for in-band registration. I would be thankful if someone could tell me what would be the best way to customize the required fields for registration in mod_register.

If you only want to change

If you only want to change the text displayed to the client, then you can edit the language files, like ru.msg or whatever language you use.

If you want to change the behavour, like adding fields, then you have to modify mod_register.erl source code.

Thanks for the help badlop!

Thanks for the help badlop!

Yes, I want to modify the

Yes, I want to modify the behavior. I see on Github that you are one of the contributors to mod_register. I am new to ejabberd modules development; can you give me a general direction on what I should be looking at in the code? Also, do you think it is possible to make the behavior configurable? I would be willing to contribute back to the module if you find it suitable.

Thanks!

Syndicate content