<![CDATA[ Have Rampart check Quip name too??? - My Forums]]> https://forums.modx.com/thread/?thread=81436 <![CDATA[Re: Have Rampart check Quip name too???]]> https://forums.modx.com/thread/81436/have-rampart-check-quip-name-too#dis-post-531620
$email = $fields['email'];
$rptSpammerErrorMessage = $modx->getOption('rptSpammerErrorMessage',$scriptProperties,'Your account has been banned as a spammer. Sorry.');
$response = $rampart->check('',$email);


to this:

$email = $fields['email'];
$username = $files['email']; //added

$rptSpammerErrorMessage = $modx->getOption('rptSpammerErrorMessage',$scriptProperties,'Your account has been banned as a spammer. Sorry.');
$response = $rampart->check($username,$email); // modified


Then specify that duplicate hook in the tag instead of the original hook. This may or may not make much difference as spammers change their usernames regularly. You could also write your own additional hook and keep a local file with a list of spammer usernames to check.

You could also make that change in the existing hook, but then it would be overwritten if you upgraded Rampart.]]>
BobRay Sep 16, 2015, 03:58 PM https://forums.modx.com/thread/81436/have-rampart-check-quip-name-too#dis-post-531620
<![CDATA[Re: Have Rampart check Quip name too???]]> https://forums.modx.com/thread/81436/have-rampart-check-quip-name-too#dis-post-531562 mafokken Sep 16, 2015, 01:04 AM https://forums.modx.com/thread/81436/have-rampart-check-quip-name-too#dis-post-531562 <![CDATA[Re: Have Rampart check Quip name too???]]> https://forums.modx.com/thread/81436/have-rampart-check-quip-name-too#dis-post-473587 mafokken Jul 31, 2013, 05:50 AM https://forums.modx.com/thread/81436/have-rampart-check-quip-name-too#dis-post-473587 <![CDATA[Re: Have Rampart check Quip name too???]]> https://forums.modx.com/thread/81436/have-rampart-check-quip-name-too#dis-post-465221
Or do I need to suggest this somewhere else? If so, where?]]>
mafokken May 02, 2013, 11:02 PM https://forums.modx.com/thread/81436/have-rampart-check-quip-name-too#dis-post-465221
<![CDATA[Have Rampart check Quip name too???]]> https://forums.modx.com/thread/81436/have-rampart-check-quip-name-too#dis-post-449060
I tried looking at the hook that Rampart has that was coded for FormIt and couldn't make my own. Thanks for your help in advance.]]>
mafokken Jan 03, 2013, 01:09 AM https://forums.modx.com/thread/81436/have-rampart-check-quip-name-too#dis-post-449060