您的位置:首页 > 其它

Ejabber2.1.3 配置admin注册用户 ,禁止普通用户注册

2013-10-13 18:38 525 查看
打开:ejaberred.cfg

修改下面这两行 ,其中 register_from 为新加入

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


修改mod_register 模块 为:

{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}
]},
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息