author | Kim Alvefur <zash@zash.se> |
Mon, 16 Aug 2010 18:51:22 +0200 | |
changeset 3454 | 8cf30367aa4f |
parent 3453 | fba130c16818 |
child 3455 | 67cdc0366d46 |
--- 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);