25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Fix spec comment and remove useless case block

This commit is contained in:
Taufan Aditya 2015-01-09 22:19:46 +07:00
parent 17a7844e40
commit f650fc83ae

View File

@ -77,10 +77,7 @@ update_reg_users_counter_table(Server) ->
mnesia:sync_dirty(F). mnesia:sync_dirty(F).
plain_password_required() -> plain_password_required() ->
case is_scrammed() of is_scrammed().
false -> false;
true -> true
end.
store_type() -> store_type() ->
case is_scrammed() of case is_scrammed() of
@ -150,7 +147,7 @@ set_password(User, Server, Password) ->
ok ok
end. end.
%% @spec (User, Server, Password) -> {atomic, ok} | {atomic, exists} | {error, invalid_jid} | {aborted, Reason} %% @spec (User, Server, Password) -> {atomic, ok} | {atomic, exists} | {error, invalid_jid} | {error, not_allowed} | {error, Reason}
try_register(User, Server, PasswordList) -> try_register(User, Server, PasswordList) ->
LUser = jlib:nodeprep(User), LUser = jlib:nodeprep(User),
LServer = jlib:nameprep(Server), LServer = jlib:nameprep(Server),