asmack XMPP new user registration

后端 未结 7 1355
鱼传尺愫
鱼传尺愫 2021-02-04 20:50

Good people of StackOverflow, please help. I\'ve set up an ejabberd server on my ubuntu machine, added virtual host, set {access, register, [{allow, all}]}. and registered

7条回答
  •  抹茶落季
    2021-02-04 21:23

    I found it! The problem is in server configuration (but I still don't understand why I could register new user from Pidgin before this change). Setting

    %% In-band registration
    {access, register, [{allow, all}]}.
    

    doesn't seem to work with new versions of ejabberd. You need to add

    {mod_register, [
          {access_from, register},
           ...
                    ] ...
    

    if You want to allow all users to register. If You want only admin to have this access, then you need to add new access rule

    {access, register_from, [{allow, admin}]}.
    

    and

    {mod_register, [
          {access_from, register_from},
           ...
                    ] ...
    

提交回复
热议问题