This file contains 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 <tomek@xiaoka.com> | |
-- Copyright (C) 2011 Waqas Hussain <waqas20@gmail.com> | |
-- | |
-- 25/05/2014: Modified for Diaspora by Anahuac de Paula Gil - anahuac@anahuac.eu | |
-- 06/08/2014: Cleaned up and fixed SASL auth by Jonne Haß <me@jhass.eu> | |
-- 22/11/2014: Allow token authentication by Jonne Haß <me@jhass.eu> | |
local log = require "util.logger".init("auth_diaspora") | |
local new_sasl = require "util.sasl".new |
This file contains 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 <zash@zash.se> | |
-- 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/user@example.com -d "Hello there" | |
-- This would set presence of user@example.com with status 'Hello there' | |
-- another example: |
This file contains 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 <zash@zash.se> | |
-- 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/user@example.com -d "Hello there" |
This file contains 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; |