Comparison

plugins/mod_auth_internal_plain.lua @ 3994:42899d5efe3b

mod_auth_internal_*: Support for delete_user method
author Matthew Wild <mwild1@gmail.com>
date Tue, 04 Jan 2011 17:12:28 +0000
parent 3981:2b0b8fe68df2
child 4160:f08f649b898b
comparison
equal deleted inserted replaced
3993:b71e5ecc694b 3994:42899d5efe3b
60 end 60 end
61 61
62 function provider.create_user(username, password) 62 function provider.create_user(username, password)
63 return datamanager.store(username, host, "accounts", {password = password}); 63 return datamanager.store(username, host, "accounts", {password = password});
64 end 64 end
65
66 function provider.delete_user(username)
67 return datamanager.store(username, host, "accounts", nil);
68 end
65 69
66 function provider.get_sasl_handler() 70 function provider.get_sasl_handler()
67 local realm = module:get_option("sasl_realm") or module.host; 71 local realm = module:get_option("sasl_realm") or module.host;
68 local getpass_authentication_profile = { 72 local getpass_authentication_profile = {
69 plain = function(sasl, username, realm) 73 plain = function(sasl, username, realm)