certs: Add a default OpenSSL configuration file, and a Makefile.
[prosody.git] / plugins / mod_auth_internal_hashed.lua
index 2bee141c6359852397d82656204d131ed709265e..300bebf80f02e79562d71dd971ef8e675885e01a 100644 (file)
@@ -125,6 +125,9 @@ function new_hashpass_provider(host)
        end
 
        function provider.create_user(username, password)
+               if password == nil then
+                       return datamanager.store(username, host, "accounts", {});
+               end
                local salt = generate_uuid();
                local valid, stored_key, server_key = getAuthenticationDatabaseSHA1(password, salt, iteration_count);
                local stored_key_hex = to_hex(stored_key);