]> granicus.if.org Git - ejabberd/commitdiff
* src/ejabberd_auth.erl: Better handling of errors when the server for
authorMickaël Rémond <mickael.remond@process-one.net>
Wed, 5 Jul 2006 14:36:21 +0000 (14:36 +0000)
committerMickaël Rémond <mickael.remond@process-one.net>
Wed, 5 Jul 2006 14:36:21 +0000 (14:36 +0000)
authentication is unknown.

SVN Revision: 585

ChangeLog
src/ejabberd_auth.erl

index 7d34203245f1dad0e803f666bc0f0dad60843c76..e39bdb54b2d40be1daa8e7826cca539982e8fa83 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,8 @@
 
        * src/mod_shared_roster.erl: The logged user (self) is now removed from
        the shared roster list.
+       * src/ejabberd_auth.erl: Better handling of errors when the server for
+       authentication is unknown.
 
 2006-06-19  Alexey Shchepin  <alexey@sevcom.net>
 
index e3839c491c5cf0b808f3665c9cf190fabedb1706..4c34ae76a4146e2a9ca6a7eb044bfcb9c042867c 100644 (file)
@@ -169,6 +169,7 @@ auth_modules(Server) ->
     LServer = jlib:nameprep(Server),
     Method = ejabberd_config:get_local_option({auth_method, LServer}),
     Methods = if
+                 Method == undefined -> [];
                  is_list(Method) -> Method;
                  is_atom(Method) -> [Method]
              end,