26
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

Fix xref issue injected by fbfbb96

This commit is contained in:
Christophe Romain 2016-11-22 17:51:21 +01:00
parent 9ab169bc63
commit ee8cc1dac2
2 changed files with 10 additions and 7 deletions

View File

@ -36,7 +36,7 @@
-export([start/1, set_password/3, check_password/4, -export([start/1, set_password/3, check_password/4,
check_password/6, try_register/3, check_password/6, try_register/3,
dirty_get_registered_users/0, get_vh_registered_users/1, dirty_get_registered_users/0, get_vh_registered_users/1,
get_vh_registered_users/2, get_vh_registered_users/2, init_db/0,
get_vh_registered_users_number/1, get_vh_registered_users_number/1,
get_vh_registered_users_number/2, get_password/2, get_vh_registered_users_number/2, get_password/2,
get_password_s/2, is_user_exists/2, remove_user/2, get_password_s/2, is_user_exists/2, remove_user/2,
@ -59,16 +59,19 @@
%%% API %%% API
%%%---------------------------------------------------------------------- %%%----------------------------------------------------------------------
start(Host) -> start(Host) ->
init_db(),
update_table(),
update_reg_users_counter_table(Host),
maybe_alert_password_scrammed_without_option(),
ok.
init_db() ->
mnesia:create_table(passwd, mnesia:create_table(passwd,
[{disc_copies, [node()]}, [{disc_copies, [node()]},
{attributes, record_info(fields, passwd)}]), {attributes, record_info(fields, passwd)}]),
mnesia:create_table(reg_users_counter, mnesia:create_table(reg_users_counter,
[{ram_copies, [node()]}, [{ram_copies, [node()]},
{attributes, record_info(fields, reg_users_counter)}]), {attributes, record_info(fields, reg_users_counter)}]).
update_table(),
update_reg_users_counter_table(Host),
maybe_alert_password_scrammed_without_option(),
ok.
update_reg_users_counter_table(Server) -> update_reg_users_counter_table(Server) ->
Set = get_vh_registered_users(Server), Set = get_vh_registered_users(Server),

View File

@ -18,7 +18,7 @@
roster_subscribe/4, get_roster_by_jid_with_groups/3, roster_subscribe/4, get_roster_by_jid_with_groups/3,
remove_user/2, update_roster/4, del_roster/3, transaction/2, remove_user/2, update_roster/4, del_roster/3, transaction/2,
read_subscription_and_groups/3, get_only_items/2, read_subscription_and_groups/3, get_only_items/2,
import/3, export/1]). import/3, export/1, raw_to_record/2]).
-include("mod_roster.hrl"). -include("mod_roster.hrl").
-include("ejabberd_sql_pt.hrl"). -include("ejabberd_sql_pt.hrl").