Added an example of a working connector.

- mailman specific
- has been tested to work properly for both subscribe, and unsubscribe
- uses node.js
- two stage security
  1) password is specific to connector for recognization
  2) password used by list not kept local
- ssl used for all communication
- yeah!
This commit is contained in:
Jonathan Rosenbaum
2015-02-28 09:54:13 +00:00
parent 39def79d87
commit 6aa95e1ad4
3 changed files with 97 additions and 7 deletions
+5 -2
View File
@@ -89,7 +89,7 @@ $(function(){
if ((err0 + err1 + err2 + err3 + err4 + err5) > 0 ) {
} else {
e.preventDefault();
//e.preventDefault();
dfd.resolve("Success");
}
@@ -121,8 +121,11 @@ $(function(){
// email subscribe
if (email_list == 1) {
$.post("json/contact.php", {email_list_connector: 1, email: email.val(),
$.post("json/contact.php", {email_list_connector: 'subscribe', email: email.val(),
first_name: first_name.val(), last_name: last_name.val()});
} else {
$.post("json/contact.php", {email_list_connector: 'unsubscribe', email: email.val(),
first_name: first_name.val(), last_name: last_name.val()});
}
}