Mon, 16 Aug 2010 18:51:22 +0200
mod_auth_internal_hashed: Fix deleting users
plugins/mod_auth_internal_hashed.lua | file | annotate | diff | comparison | revisions |
--- a/plugins/mod_auth_internal_hashed.lua Thu Aug 12 20:44:01 2010 +0200 +++ b/plugins/mod_auth_internal_hashed.lua Mon Aug 16 18:51:22 2010 +0200 @@ -125,6 +125,9 @@ 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);