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.