mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2026-09-03 10:21:38 -04:00
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:
+5
-2
@@ -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()});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user