]> granicus.if.org Git - ejabberd/commitdiff
Support to import XML files without password-format attribute
authorBadlop <badlop@process-one.net>
Thu, 8 Sep 2011 09:43:21 +0000 (11:43 +0200)
committerBadlop <badlop@process-one.net>
Thu, 8 Sep 2011 09:43:21 +0000 (11:43 +0200)
src/ejabberd_piefxis.erl

index 58b15a166d8b3c6279e218dcc3d7eda25a8bc17e..d9b93bf1a9cabf54255cbb682217c3a230e31d54 100644 (file)
@@ -159,7 +159,7 @@ process_element(El,State) ->
 
 add_user(El, Domain) ->
     User = exmpp_xml:get_attribute(El,<<"name">>,none),
-    PasswordFormat = exmpp_xml:get_attribute(El,<<"password-format">>,none),
+    PasswordFormat = exmpp_xml:get_attribute(El,<<"password-format">>,<<"plaintext">>),
     Password = exmpp_xml:get_attribute(El,<<"password">>,none),
     add_user(El, Domain, User, PasswordFormat, Password).