Support to import XML files without password-format attribute

This commit is contained in:
Badlop 2011-09-08 11:43:21 +02:00
parent b017702a15
commit adc37a8cc6
1 changed files with 1 additions and 1 deletions

View 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).