mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Fix spec comment and remove useless case block
This commit is contained in:
parent
17a7844e40
commit
f650fc83ae
@ -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),
|
||||||
|
Loading…
Reference in New Issue
Block a user