comparison plugins/mod_auth_internal_plain.lua @ 4060:52b437eb7059

mod_auth_internal_*: Support for delete_user method
author Matthew Wild <mwild1@gmail.com>
date Tue, 04 Jan 2011 17:12:28 +0000
parents fe6f4a255fd8
children f08f649b898b
comparison
equal deleted inserted replaced
4059:cfdcad1782aa 4060:52b437eb7059
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)