Software /
code /
prosody
Comparison
plugins/mod_auth_internal_plain.lua @ 5156:6b08c922a2e4
mod_auth_internal_{plain,hashed}: Add support for iterating over accounts
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 21 Sep 2012 17:26:12 +0200 |
parent | 5117:2c7e1ce8f482 |
child | 5302:52fe5df91c65 |
comparison
equal
deleted
inserted
replaced
5155:a207d4bff5a4 | 5156:6b08c922a2e4 |
---|---|
50 return nil, "Auth failed. Invalid username"; | 50 return nil, "Auth failed. Invalid username"; |
51 end | 51 end |
52 return true; | 52 return true; |
53 end | 53 end |
54 | 54 |
55 function provider.users() | |
56 return datamanager.users(host, "accounts"); | |
57 end | |
58 | |
55 function provider.create_user(username, password) | 59 function provider.create_user(username, password) |
56 return datamanager.store(username, host, "accounts", {password = password}); | 60 return datamanager.store(username, host, "accounts", {password = password}); |
57 end | 61 end |
58 | 62 |
59 function provider.delete_user(username) | 63 function provider.delete_user(username) |