Mercurial > prosody-modules
comparison mod_auth_any/mod_auth_any.lua @ 1343:7dbde05b48a9
all the things: Remove trailing whitespace
| author | Florian Zeitz <florob@babelmonkeys.de> |
|---|---|
| date | Tue, 11 Mar 2014 18:44:01 +0100 |
| parents | bb1fb54360ab |
| children | 75be377b74ea |
comparison
equal
deleted
inserted
replaced
| 1342:0ae065453dc9 | 1343:7dbde05b48a9 |
|---|---|
| 43 end | 43 end |
| 44 | 44 |
| 45 function provider.create_user(username, password) | 45 function provider.create_user(username, password) |
| 46 return datamanager.store(username, host, "accounts", {password = password}); | 46 return datamanager.store(username, host, "accounts", {password = password}); |
| 47 end | 47 end |
| 48 | 48 |
| 49 function provider.delete_user(username) | 49 function provider.delete_user(username) |
| 50 return datamanager.store(username, host, "accounts", nil); | 50 return datamanager.store(username, host, "accounts", nil); |
| 51 end | 51 end |
| 52 | 52 |
| 53 function provider.get_sasl_handler() | 53 function provider.get_sasl_handler() |
| 56 return true, true; | 56 return true, true; |
| 57 end | 57 end |
| 58 }; | 58 }; |
| 59 return new_sasl(module.host, getpass_authentication_profile); | 59 return new_sasl(module.host, getpass_authentication_profile); |
| 60 end | 60 end |
| 61 | 61 |
| 62 return provider; | 62 return provider; |
| 63 end | 63 end |
| 64 | 64 |
| 65 module:add_item("auth-provider", new_default_provider(module.host)); | 65 module:add_item("auth-provider", new_default_provider(module.host)); |
| 66 | 66 |
