]> granicus.if.org Git - ejabberd/commitdiff
Fix anonymous user login, it wasn't stored in anonymous mnesia table
authorBadlop <badlop@process-one.net>
Mon, 1 Jun 2015 12:34:49 +0000 (14:34 +0200)
committerBadlop <badlop@process-one.net>
Mon, 1 Jun 2015 12:34:49 +0000 (14:34 +0200)
src/ejabberd_auth_anonymous.erl

index cb320dea5570ed1b8584df5c6ec87ea99d4b7362..2193794520c0e99be897d77084b9bc022406d062 100644 (file)
@@ -141,7 +141,7 @@ remove_connection(SID, LUser, LServer) ->
 %% Register connection
 register_connection(SID,
                    #jid{luser = LUser, lserver = LServer}, Info) ->
-    AuthModule = list_to_atom(binary_to_list(xml:get_attr_s(<<"auth_module">>, Info))),
+    AuthModule = xml:get_attr_s(auth_module, Info),
     case AuthModule == (?MODULE) of
       true ->
          ejabberd_hooks:run(register_user, LServer,