Software /
code /
prosody
Diff
plugins/mod_auth_internal_hashed.lua @ 3454:8cf30367aa4f
mod_auth_internal_hashed: Fix deleting users
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 16 Aug 2010 18:51:22 +0200 |
parent | 3395:e736f68c1047 |
child | 3981:2b0b8fe68df2 |
line wrap: on
line diff
--- 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);