This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Based on Simple SQL Authentication module for Prosody IM | |
| -- Copyright (C) 2011 Tomasz Sterna <[email protected]> | |
| -- Copyright (C) 2011 Waqas Hussain <[email protected]> | |
| -- | |
| -- 25/05/2014: Modified for Diaspora by Anahuac de Paula Gil - [email protected] | |
| -- 06/08/2014: Cleaned up and fixed SASL auth by Jonne Haß <[email protected]> | |
| -- 22/11/2014: Allow token authentication by Jonne Haß <[email protected]> | |
| local log = require "util.logger".init("auth_diaspora") | |
| local new_sasl = require "util.sasl".new |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Recive a HTTP POST and relay it | |
| -- By Kim Alvefur <[email protected]> | |
| -- Some code borrowed from mod_webpresence | |
| -- | |
| -- Example usage: | |
| -- curl http://example.com:5280/presence/user -d "Hello there" | |
| -- or | |
| -- curl http://example.com:5280/presence/[email protected] -d "Hello there" | |
| -- This would set presence of [email protected] with status 'Hello there' | |
| -- another example: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Recive a HTTP POST and relay it | |
| -- Author: Waqas Hussain | |
| -- Derived from mod_post_msg by Kim Alvefur <[email protected]> | |
| -- Some code borrowed from mod_webpresence | |
| -- | |
| -- Example usage: | |
| -- curl http://example.com:5280/presence/user -d "Hello there" | |
| -- or | |
| -- curl http://example.com:5280/presence/[email protected] -d "Hello there" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff -r 582ba9c459ad plugins/mod_storage_sql.lua | |
| --- a/plugins/mod_storage_sql.lua Sat Jan 08 23:21:28 2011 +0000 | |
| +++ b/plugins/mod_storage_sql.lua Mon Jan 10 05:28:35 2011 +0000 | |
| @@ -28,14 +28,41 @@ | |
| local xpcall = xpcall; | |
| local json = require "util.json"; | |
| +local DBI; | |
| local connection; | |
| local host,user,store = module.host; |