mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Merge pull request #400 from toopay/patch-clarity-cleanup
Fix spec comment and remove useless case block
This commit is contained in:
commit
479da33092
@ -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