]> granicus.if.org Git - ejabberd/commitdiff
Improve indentation
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Wed, 30 May 2018 19:53:34 +0000 (22:53 +0300)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Wed, 30 May 2018 19:53:34 +0000 (22:53 +0300)
src/ejabberd_auth.erl

index 39598e5278b65ce1aa39057fc7526fe2def106af..9807e1f92afa2b8a37abb306af45451aa48df7b2 100644 (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.