Improve indentation

This commit is contained in:
Evgeniy Khramtsov 2018-05-30 22:53:34 +03:00
parent dacba3ec00
commit 1261502f6a
1 changed files with 12 additions and 12 deletions

View File

@ -233,18 +233,18 @@ check_password_with_authmodule(User, AuthzId, Server, Password, Digest, DigestGe
case jid:nodeprep(AuthzId) of
error ->
false;
LAuthzId ->
lists:foldl(
fun(Mod, false) ->
case db_check_password(
LUser, LAuthzId, LServer, Password,
Digest, DigestGen, Mod) of
true -> {true, Mod};
false -> false
end;
(_, Acc) ->
Acc
end, false, auth_modules(LServer))
LAuthzId ->
lists:foldl(
fun(Mod, false) ->
case db_check_password(
LUser, LAuthzId, LServer, Password,
Digest, DigestGen, Mod) of
true -> {true, Mod};
false -> false
end;
(_, Acc) ->
Acc
end, false, auth_modules(LServer))
end
end.