Ejabber2.1.3 配置admin註冊用戶 ,禁止普通用戶註冊


打開:ejaberred.cfgide


修改下面這兩行 ,其中 register_from 爲新加入this


%% To disable in-band registration, replace 'allow' with 'deny'.
{access, register, [{allow, admin}]}.
{access, register_from, [{allow, admin}]}.


修改mod_register 模塊 爲:spa


{mod_register, [
          %%
          %% After successful registration, the user receives
          %% a message with this subject and body.
          %%
          %% {welcome_message, {"Welcome!",
          %%             "Hi.\nWelcome to this XMPP server."}},
          %%
          %% When a user registers, send a notification to
          %% these XMPP accounts.
          %%
          %%{registration_watchers, ["admin1@example.org"]},
          {access_from, register_from}
         ]},
相關文章
相關標籤/搜索