mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-30 16:36:29 +01:00
Support to import XML files without password-format attribute
This commit is contained in:
parent
b017702a15
commit
adc37a8cc6
@ -159,7 +159,7 @@ process_element(El,State) ->
|
|||||||
|
|
||||||
add_user(El, Domain) ->
|
add_user(El, Domain) ->
|
||||||
User = exmpp_xml:get_attribute(El,<<"name">>,none),
|
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),
|
Password = exmpp_xml:get_attribute(El,<<"password">>,none),
|
||||||
add_user(El, Domain, User, PasswordFormat, Password).
|
add_user(El, Domain, User, PasswordFormat, Password).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user